/* =========================================================
   ACCQUEST TRAINING INSTITUTE — Design system
   Palette: Ink Navy / Kiln Orange / Brass Gold / Parchment
   Type: Fraunces (display) + Work Sans (body/UI)
   ========================================================= */

:root{
  --ink:          #101B33;
  --ink-2:        #16264A;
  --kiln:         #D9622B;
  --kiln-dark:    #B44E20;
  --brass:        #C89B3C;
  --parchment:    #F6F1E7;
  --paper:        #FBFAF7;
  --white:        #FFFFFF;
  --line:         #E4DCC8;
  --ink-soft:     #4A5468;
  --success:      #3F7A4E;
  --danger:       #B23A34;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body:    "Work Sans", "Segoe UI", Arial, sans-serif;

  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 26px;

  --shadow-card: 0 1px 2px rgba(16,27,51,0.06), 0 10px 24px -14px rgba(16,27,51,0.35);
  --shadow-pop:  0 20px 45px -18px rgba(16,27,51,0.45);

  --maxw: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; }

h1, h2, h3, h4{
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1{ font-size: clamp(2.3rem, 4.4vw, 3.6rem); font-weight: 500; letter-spacing: -0.01em; }
h2{ font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3{ font-size: 1.3rem; }
p{ margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }

.wrap{
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible{
  outline: 3px solid var(--brass);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =================== Skip link =================== */
.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

/* =================== Top notice bar =================== */
.notice-bar{
  background: var(--ink);
  color: var(--parchment);
  font-size: 0.85rem;
  text-align: center;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(200,155,60,0.35);
}
.notice-bar strong{ color: var(--brass); }
.notice-bar a{ text-decoration: underline; text-underline-offset: 2px; }

/* =================== Header / nav =================== */
.site-header{
  position: sticky; top: 0; z-index: 200;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav{
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(20px, 4vw, 40px);
  max-width: var(--maxw); margin: 0 auto;
  gap: 20px;
}
.brand{ display: flex; align-items: center; gap: 12px; }
.brand img{ width: 44px; height: auto; }
.brand-text{ display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .name{ font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.brand-text .tag{ font-size: 0.68rem; letter-spacing: 0.06em; color: var(--kiln-dark); text-transform: uppercase; }

.nav-links{ display: flex; gap: 28px; align-items: center; }
.nav-links a{
  font-size: 0.96rem; color: var(--ink); position: relative; padding: 6px 0;
}
.nav-links a.active,
.nav-links a:hover{ color: var(--kiln-dark); }
.nav-links a.active::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--kiln);
}

.nav-cta{ display: flex; gap: 10px; align-items: center; }

.nav-toggle{
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 42px; height: 38px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after{
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative;
}
.nav-toggle::before{ margin-bottom: 5px; }
.nav-toggle::after{ margin-top: 5px; }

@media (max-width: 880px){
  .nav-links{
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 10px clamp(20px,4vw,40px) 18px;
    display: none;
  }
  .nav-links.open{ display: flex; }
  .nav-links a{ padding: 10px 0; width: 100%; }
  .nav-toggle{ display: flex; }
  .nav-cta .btn{ display: none; }
}

/* =================== Buttons =================== */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: var(--kiln); color: var(--white); }
.btn-primary:hover{ background: var(--kiln-dark); }
.btn-ghost{ background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover{ background: var(--ink); color: var(--white); }
.btn-outline-light{ background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-outline-light:hover{ background: var(--white); color: var(--ink); }
.btn-block{ width: 100%; }
.btn-sm{ padding: 8px 16px; font-size: 0.85rem; }

/* =================== Hero (index) =================== */
.hero{
  position: relative;
  background: var(--ink);
  color: var(--parchment);
  overflow: hidden;
  padding: clamp(48px, 8vw, 90px) 0 0;
}
.hero-grid{
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center;
}
@media (max-width: 920px){ .hero-grid{ grid-template-columns: 1fr; } }

.eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--brass); margin-bottom: 18px;
}
.eyebrow .dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--kiln); display: inline-block; }

.hero h1{ color: var(--white); }
.hero h1 em{ font-style: italic; color: var(--brass); }
.hero p.lead{ color: #C9D0E0; font-size: 1.08rem; max-width: 46ch; }
.hero-actions{ display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

.hero-stats{
  display: flex; gap: clamp(18px, 4vw, 40px); margin-top: 44px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.14); padding-top: 24px;
}
.hero-stats .stat b{ display:block; font-family: var(--font-display); font-size: 1.6rem; color: var(--white); }
.hero-stats .stat span{ font-size: 0.82rem; color: #A9B2C6; }

.hero-badge-wrap{ position: relative; display: flex; justify-content: center; }
.hero-seal{
  width: min(320px, 80%);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35));
  animation: seal-in 0.7s ease both;
}
@keyframes seal-in{ from{ opacity: 0; transform: translateY(14px) scale(0.97); } to{ opacity: 1; transform: none; } }

.hero-arc{
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(closest-side, rgba(217,98,43,0.28), transparent 70%) top right / 60% 60% no-repeat,
    radial-gradient(closest-side, rgba(200,155,60,0.16), transparent 70%) bottom left / 55% 55% no-repeat;
}

.hero-wave{ display:block; width:100%; height:auto; margin-top: 40px; }

/* =================== Section basics =================== */
section{ padding: clamp(48px, 7vw, 84px) 0; }
.section-head{ max-width: 640px; margin-bottom: 40px; }
.section-head .eyebrow{ color: var(--kiln-dark); }
.section-alt{ background: var(--parchment); }
.section-ink{ background: var(--ink); color: var(--parchment); }
.section-ink h2, .section-ink h3{ color: var(--white); }
.section-ink p{ color: #C9D0E0; }

/* =================== Cards =================== */
.grid{ display: grid; gap: 26px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px){ .grid-3, .grid-4{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; } }

.card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 26px;
  box-shadow: var(--shadow-card);
}

.icon-tile{
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--parchment); color: var(--kiln-dark);
  margin-bottom: 16px;
}
.icon-tile svg{ width: 26px; height: 26px; }

/* Course card */
.course-card{
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-card);
}
.course-top{
  padding: 22px 24px 0;
}
.course-dept{
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.02em;
  background: var(--parchment); color: var(--kiln-dark); padding: 4px 10px; border-radius: 999px;
  margin-bottom: 12px;
}
.course-level{ font-size: 0.8rem; color: var(--ink-soft); }
.course-body{ padding: 12px 24px 24px; flex: 1; display:flex; flex-direction:column; }
.course-meta{ display: flex; gap: 16px; margin: 14px 0; font-size: 0.85rem; color: var(--ink-soft); flex-wrap: wrap; }
.course-meta span{ display:flex; align-items:center; gap:6px; }
.course-foot{ margin-top: auto; display: flex; gap: 10px; padding-top: 8px; }

/* Pathway (legitimate sequence: Artisan -> Certificate -> Diploma) */
.pathway{
  display: flex; align-items: stretch; gap: 0; margin-top: 30px; flex-wrap: wrap;
}
.pathway-step{
  flex: 1; min-width: 200px; background: var(--white); border: 1px solid var(--line);
  padding: 22px; position: relative;
}
.pathway-step:not(:last-child){ border-right: none; }
.pathway-step:first-child{ border-radius: var(--radius-m) 0 0 var(--radius-m); }
.pathway-step:last-child{ border-radius: 0 var(--radius-m) var(--radius-m) 0; }
@media (max-width: 780px){
  .pathway-step, .pathway-step:first-child, .pathway-step:last-child{ border-radius: var(--radius-m); border-right:1px solid var(--line); }
}
.pathway-step .lvl{ font-family: var(--font-display); color: var(--kiln-dark); font-size: 1.1rem; }
.pathway-step h4{ font-family: var(--font-body); font-weight: 700; margin: 6px 0 6px; font-size: 1rem; }
.pathway-step p{ font-size: 0.9rem; margin: 0; }
.pathway-arrow{
  display: flex; align-items: center; justify-content: center; width: 34px; color: var(--brass); font-size: 1.3rem;
}
@media (max-width: 780px){ .pathway-arrow{ display:none; } }

/* Stat strip */
.stat-strip{
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center;
}
@media (max-width: 780px){ .stat-strip{ grid-template-columns: repeat(2,1fr); } }
.stat-strip b{ font-family: var(--font-display); font-size: 2rem; display:block; color: var(--brass); }
.stat-strip span{ font-size: 0.85rem; color: #C9D0E0; }

/* Timeline (admissions steps) */
.timeline{ position: relative; padding-left: 30px; }
.timeline::before{ content:""; position:absolute; left:9px; top:6px; bottom:6px; width:2px; background: var(--line); }
.timeline-item{ position: relative; padding-bottom: 30px; }
.timeline-item::before{
  content:""; position:absolute; left:-30px; top:2px; width:20px; height:20px; border-radius:50%;
  background: var(--parchment); border: 2px solid var(--kiln);
}
.timeline-item h4{ margin-bottom: 4px; }

/* Testimonial */
.quote-card{
  background: var(--white); border-left: 4px solid var(--brass); border-radius: var(--radius-s);
  padding: 24px; box-shadow: var(--shadow-card);
}
.quote-card p{ font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); font-style: italic; }
.quote-by{ display:flex; align-items:center; gap:10px; margin-top: 14px; }
.avatar-dot{ width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--brass); display:flex; align-items:center; justify-content:center; font-family: var(--font-display); font-weight:600; }
.quote-by span{ font-size: 0.85rem; color: var(--ink-soft); }

/* CTA band */
.cta-band{
  background: linear-gradient(120deg, var(--kiln), var(--kiln-dark));
  color: var(--white); border-radius: var(--radius-l);
  padding: clamp(30px, 5vw, 54px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2{ color: var(--white); margin-bottom: 6px; }
.cta-band p{ color: rgba(255,255,255,0.9); margin: 0; }

/* =================== Forms =================== */
.form-card{
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-card);
}
.field{ margin-bottom: 18px; }
.field label{ display:block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field .hint{ display:block; font-size: 0.78rem; color: var(--ink-soft); margin-top: 4px; font-weight: 400; }
.field input, .field select, .field textarea{
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-s);
  font-family: var(--font-body); font-size: 0.95rem; background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color: var(--kiln); outline: none; }
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px){ .field-row{ grid-template-columns: 1fr; } }
.field.invalid input, .field.invalid select, .field.invalid textarea{ border-color: var(--danger); }
.error-text{ color: var(--danger); font-size: 0.8rem; display:none; margin-top: 4px; }
.field.invalid .error-text{ display: block; }
.form-status{
  margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-s); font-size: 0.9rem; display: none;
}
.form-status.show{ display: block; }
.form-status.success{ background: #E9F3EB; color: var(--success); border: 1px solid #BEDBC4; display:block; }
.form-status.error{ background: #FBEAE9; color: var(--danger); border: 1px solid #F0C4C1; display:block; }

fieldset{ border: none; padding: 0; margin: 0 0 20px; }
legend{ font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 12px; padding: 0; }

/* =================== Table (fees) =================== */
.table-wrap{ overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); }
table{ width: 100%; border-collapse: collapse; min-width: 520px; }
th, td{ text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
thead th{ background: var(--ink); color: var(--parchment); font-family: var(--font-display); font-weight: 500; }
tbody tr:last-child td{ border-bottom: none; }
tbody tr:nth-child(even){ background: var(--parchment); }

/* =================== Footer =================== */
.site-footer{ background: var(--ink); color: #B9C1D6; padding: 56px 0 26px; }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 780px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-grid h4{ color: var(--white); font-family: var(--font-body); font-size: 0.9rem; text-transform: none; margin-bottom: 14px; }
.footer-grid ul li{ margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid ul li a:hover{ color: var(--brass); }
.footer-brand{ display:flex; gap:12px; align-items:flex-start; margin-bottom: 14px; }
.footer-brand img{ width: 40px; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem;
}
.social-row{ display:flex; gap: 12px; margin-top: 14px; }
.social-row a{
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover{ background: var(--kiln); border-color: var(--kiln); }
.social-row svg{ width: 16px; height: 16px; }

/* =================== Misc pages =================== */
.page-hero{
  background: var(--ink); color: var(--parchment); padding: 54px 0 60px;
}
.page-hero p{ color: #C9D0E0; }
.breadcrumb{ font-size: 0.82rem; color: var(--brass); margin-bottom: 10px; }
.breadcrumb a{ color: var(--brass); text-decoration: underline; }

.value-list{ display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
@media (max-width: 640px){ .value-list{ grid-template-columns: 1fr; } }

.tabs{ display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.tab-btn{
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white);
  font-size: 0.9rem; font-weight: 600; cursor: pointer; color: var(--ink-soft);
}
.tab-btn.active{ background: var(--ink); border-color: var(--ink); color: var(--white); }
.tab-panel{ display: none; }
.tab-panel.active{ display: block; }

.badge{
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem;
  padding: 4px 10px; border-radius: 999px; background: var(--parchment); color: var(--kiln-dark); font-weight: 600;
}

.map-frame{ border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; height: 340px; }
.map-frame iframe{ width: 100%; height: 100%; border: 0; }

/* =================== Portal / dashboard =================== */
.portal-shell{ min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--ink); padding: 30px; }
.portal-card{
  width: 100%; max-width: 420px; background: var(--paper); border-radius: var(--radius-l);
  padding: clamp(26px, 5vw, 40px); box-shadow: var(--shadow-pop);
}
.portal-logo{ display:flex; align-items:center; gap: 12px; margin-bottom: 22px; }
.portal-logo img{ width: 42px; }
.role-toggle{ display: flex; background: var(--parchment); border-radius: 999px; padding: 4px; margin-bottom: 24px; }
.role-toggle button{
  flex: 1; border: none; background: transparent; padding: 10px; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: 0.88rem; color: var(--ink-soft);
}
.role-toggle button.active{ background: var(--ink); color: var(--white); }
.portal-foot{ text-align: center; margin-top: 18px; font-size: 0.85rem; color: var(--ink-soft); }

.dash-shell{ display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
@media (max-width: 860px){ .dash-shell{ grid-template-columns: 1fr; } }
.dash-side{ background: var(--ink); color: var(--parchment); padding: 26px 20px; }
.dash-side .brand-text .name{ color: var(--white); }
.dash-nav{ margin-top: 30px; display: flex; flex-direction: column; gap: 4px; }
.dash-nav a{ padding: 11px 14px; border-radius: 10px; font-size: 0.92rem; display:flex; gap:10px; align-items:center; color: #C9D0E0; }
.dash-nav a.active, .dash-nav a:hover{ background: rgba(217,98,43,0.18); color: var(--white); }
.dash-main{ padding: clamp(22px, 4vw, 40px); background: var(--paper); }
.dash-top{ display:flex; justify-content: space-between; align-items:center; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.dash-kpis{ display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 30px; }
@media (max-width: 900px){ .dash-kpis{ grid-template-columns: repeat(2,1fr); } }
.kpi{ background: var(--white); border:1px solid var(--line); border-radius: var(--radius-m); padding: 20px; }
.kpi b{ display:block; font-family: var(--font-display); font-size: 1.5rem; }
.kpi span{ font-size: 0.8rem; color: var(--ink-soft); }
.demo-flag{
  background: #FDF3E3; border: 1px solid var(--brass); color: #7A5A17; font-size: 0.82rem;
  padding: 10px 14px; border-radius: var(--radius-s); margin-bottom: 22px;
}
.pill-status{ padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; }
.pill-status.paid{ background:#E9F3EB; color: var(--success); }
.pill-status.due{ background:#FBEAE9; color: var(--danger); }
.pill-status.progress{ background:#FDF3E3; color:#7A5A17; }

/* =================== Utility =================== */
.center{ text-align: center; margin-left: auto; margin-right: auto; }
.mt-0{ margin-top: 0; }
.muted{ color: var(--ink-soft); }
.flex{ display:flex; }
.gap-8{ gap: 8px; }
.gap-16{ gap: 16px; }
.text-white{ color: var(--white); }
