/* ===== Maztic Training Institute ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f2f7ff;
  --ink: #0f1b33;
  --muted: #55627d;
  --line: #e1e9f7;
  --brand: #1463d8;
  --brand-dark: #0d4fb3;
  --accent: #14b8c9;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 60, 140, .08);
  --shadow-lg: 0 24px 60px rgba(15, 60, 140, .16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), #2f86f0);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(20, 99, 216, .3);
  transition: transform .2s ease, box-shadow .2s ease;
  font-family: inherit;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(20, 99, 216, .4); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); box-shadow: none; }
.btn-small { padding: 10px 20px; font-size: .92rem; }
.btn-block { display: block; width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text small { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; font-weight: 800;
}
.logo-img { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; }
.logo-img.big { width: 56px; height: 56px; }
.nav-menu { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: .95rem; }
.nav-menu a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav-menu a:not(.btn):hover { color: var(--brand); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; padding: 10px; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 3px; border-radius: 3px; background: var(--ink); transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 90px 0 80px;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(20, 99, 216, .14), transparent 60%),
    radial-gradient(700px 400px at -10% 40%, rgba(20, 184, 201, .13), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--bg-alt); color: var(--brand);
  font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow-light { background: rgba(255, 255, 255, .16); color: #fff; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.5rem); line-height: 1.18; letter-spacing: -.015em; font-weight: 800; }
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 700; }
.gradient-text {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 22px 0 30px; font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-weight: 600; font-size: .94rem; }
.hero-points li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 8px; }

.hero-visual { position: relative; }
.hero-panel {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 24px; padding: 28px; box-shadow: var(--shadow-lg); display: grid; gap: 16px;
}
.hero-panel-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.hero-panel-head strong { display: block; font-size: 1.05rem; }
.hero-panel-head span { color: var(--muted); font-size: .88rem; }
.format { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 16px; background: var(--bg-alt); }
.format-icon { width: 50px; height: 50px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 1.5rem; box-shadow: var(--shadow); flex: none; }
.format p { color: var(--muted); font-size: .92rem; }
.blob { position: absolute; border-radius: 50%; filter: blur(44px); z-index: -1; opacity: .5; }
.blob-a { width: 220px; height: 220px; background: #8fbaff; top: -30px; right: -20px; }
.blob-b { width: 180px; height: 180px; background: #8ee6ee; bottom: -20px; left: -20px; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.muted { color: var(--muted); }
.link { color: var(--brand); font-weight: 700; }
.link:hover { color: var(--brand-dark); }
.note { max-width: 680px; margin: 34px auto 0; text-align: center; color: var(--muted); font-size: .98rem; }

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

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #bcd3f7; }
.icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; background: var(--bg-alt); margin-bottom: 18px;
}
.card p { margin: 10px 0 18px; color: var(--muted); }
.mini p { margin-bottom: 0; }
.feature { padding: 36px; }

/* About */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.about-copy { display: grid; gap: 16px; color: var(--muted); font-size: 1.05rem; }

/* Visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.address { margin: 20px 0 26px; font-size: 1.1rem; color: var(--muted); }
.address strong { color: var(--ink); }
.visit-card:hover { transform: none; }
.visit-card h3 { margin-bottom: 18px; font-size: 1.3rem; }
.contact-list { display: grid; gap: 12px; font-weight: 600; }
.contact-list.dark li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list.dark li:last-child { border-bottom: 0; }
.contact-list.dark a:hover { color: var(--brand); }

/* FAQ */
.faq { display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; transition: border-color .2s; }
.faq details[open] { border-color: #bcd3f7; box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* CTA / Contact */
.cta { background: linear-gradient(135deg, #0b3a8c, var(--brand) 55%, #1fa7c9); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-copy p { margin: 16px 0 24px; color: #dbe9ff; font-size: 1.08rem; }
.contact-copy .contact-list a:hover { text-decoration: underline; }
.form { color: var(--ink); display: grid; gap: 16px; padding: 34px; }
.form:hover { transform: none; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  font: inherit; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(20, 99, 216, .15);
}
.form input.invalid { border-color: #e5484d; }
.form-note { font-size: .88rem; font-weight: 600; text-align: center; color: var(--muted); }
.form-note.err { color: #e5484d; }

/* Footer */
.site-footer { background: #0a1426; color: #b7c3dc; padding: 60px 0 24px; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.site-footer .logo-text small { color: #8da0c4; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.footer-grid a:not(.logo) { display: block; margin-bottom: 8px; transition: color .2s; }
.footer-grid a:not(.logo):hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #1d2a47; font-size: .88rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid, .contact-grid, .visit-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .3s ease, opacity .3s ease;
  }
  .nav-menu.open { max-height: 460px; opacity: 1; visibility: visible; }
  .nav-menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-menu .btn { margin-top: 14px; }
  .hero { padding: 60px 0 50px; }
  .section { padding: 68px 0; }
}

@media (max-width: 600px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .feature { padding: 28px; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
