/* =====================================================
   ICCouncil — custom theme
   Palette: warm paper / charcoal ink / safety orange
   Motif: hazard stripes + editorial type
   ===================================================== */

:root {
  --paper: #faf7f0;
  --tint: #f1ebdf;
  --ink: #191512;
  --ink-2: #231e19;
  --orange: #ff5a1f;
  --orange-deep: #e04a12;
  --caution: #ffc42e;
  --white: #ffffff;
  --muted: #7a7268;
  --muted-dark: #a89e92;
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

::selection { background: var(--orange); color: var(--white); }

/* ============ hazard stripe motif ============ */
.hazard-bar {
  height: 12px;
  background: repeating-linear-gradient(
    -45deg,
    var(--ink) 0 18px,
    var(--caution) 18px 36px
  );
}
.ic-hero .hazard-bar { position: absolute; left: 0; right: 0; bottom: 0; }

/* ============ shared type ============ */
.ic-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--orange-deep); margin-bottom: 1.1rem;
}
.ic-eyebrow.on-dark { color: var(--caution); }

.ic-h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 1.02; letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}
.ic-h1 em { font-style: italic; font-weight: 500; color: var(--orange); }

.ic-h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1.1; letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.ic-h2 em { font-style: italic; font-weight: 500; color: var(--orange); }
.ic-h2.light { color: var(--white); }
.ic-h2.light em { color: var(--caution); }

.ic-lead { color: var(--muted); font-size: 1.08rem; line-height: 1.7; max-width: 480px; margin-bottom: 2rem; }
.ic-text { color: var(--muted); line-height: 1.8; }
.ic-text.on-dark { color: var(--muted-dark); }

.ic-textlink {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--ink); font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border-bottom: 2px solid var(--orange);
  padding-bottom: 0.2rem; margin-top: 0.6rem;
  transition: color 0.25s, border-color 0.25s;
}
.ic-textlink i { font-size: 0.75rem; transition: transform 0.3s var(--ease-out); }
.ic-textlink:hover { color: var(--orange-deep); border-color: var(--orange-deep); }
.ic-textlink:hover i { transform: translateX(5px); }

.ic-section { padding: 6.5rem 0; position: relative; }
.ic-dark { background: var(--ink); color: var(--white); }
.ic-tint { background: var(--tint); }

/* ============ buttons ============ */
.ic-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 0.95rem;
  border-radius: 12px; padding: 0.9rem 1.7rem;
  border: 2px solid transparent;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background-color 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.ic-btn i { transition: transform 0.35s var(--ease-out); }
.ic-btn:hover i { transform: translateX(4px); }
.ic-btn:active { transform: scale(0.97); }

.ic-btn-orange { background: var(--orange); color: var(--white); box-shadow: 5px 5px 0 var(--ink); }
.ic-btn-orange:hover { background: var(--orange-deep); color: var(--white); transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }

.ic-btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.ic-btn-outline:hover { background: var(--ink); color: var(--white); transform: translateY(-3px); }

.ic-btn-sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; box-shadow: 4px 4px 0 var(--ink); }

/* ============ nav ============ */
.ic-nav {
  padding: 1rem 0;
  transition: background-color 0.4s, padding 0.4s, box-shadow 0.4s;
}
.ic-nav.is-scrolled {
  background: rgba(250, 247, 240, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 0.55rem 0;
  box-shadow: 0 8px 30px rgba(25, 21, 18, 0.08);
}
.ic-brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.ic-brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--caution);
  font-size: 0.95rem;
  box-shadow: 3px 3px 0 var(--orange);
}
.ic-brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.ic-brand-text em { font-style: normal; color: var(--orange); }
.ic-footer .ic-brand-text { color: var(--white); }

.ic-nav .nav-link {
  color: rgba(25,21,18,0.7); font-size: 0.92rem; font-weight: 600;
  margin: 0 0.35rem; position: relative; padding: 0.5rem 0.6rem;
  transition: color 0.25s;
}
.ic-nav .nav-link::after {
  content: ""; position: absolute; left: 0.6rem; right: 0.6rem; bottom: 0.2rem;
  height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.ic-nav .nav-link:hover { color: var(--ink); }
.ic-nav .nav-link:hover::after { transform: scaleX(1); }

.ic-toggler { background: none; border: 0; width: 40px; height: 34px; position: relative; }
.ic-toggler span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--ink); }
.ic-toggler span:nth-child(1) { top: 12px; }
.ic-toggler span:nth-child(2) { top: 20px; }

@media (max-width: 991.98px) {
  .ic-nav .navbar-collapse {
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 16px; padding: 1.4rem; margin-top: 0.8rem;
    box-shadow: 6px 6px 0 rgba(25,21,18,0.15);
  }
}

/* ============ hero ============ */
.ic-hero {
  position: relative;
  padding: 10rem 0 7rem;
  background:
    radial-gradient(ellipse 50% 45% at 85% 15%, rgba(255, 90, 31, 0.08), transparent 65%),
    var(--paper);
  overflow: hidden;
}
.ic-hero .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.ic-hero .line-in {
  display: block; transform: translateY(115%);
  animation: lineUp 1s var(--ease-out) forwards;
}
.ic-hero .line:nth-child(2) .line-in { animation-delay: 0.14s; }
.ic-hero .line:nth-child(3) .line-in { animation-delay: 0.28s; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero-fade { opacity: 0; transform: translateY(20px); animation: fadeUp 0.9s var(--ease-out) forwards; }
.ic-eyebrow.hero-fade { animation-delay: 0.1s; }
.ic-lead.hero-fade { animation-delay: 0.45s; }
div.hero-fade { animation-delay: 0.58s; }
ul.hero-fade { animation-delay: 0.7s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem; padding: 0; margin: 2.2rem 0 0; }
.hero-points li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.hero-points i { color: var(--orange); }

.hero-shot {
  position: relative;
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 14px 14px 0 var(--caution);
  transform: rotate(1.6deg);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.hero-shot:hover { transform: rotate(0deg); box-shadow: 8px 8px 0 var(--orange); }
.hero-shot img { width: 100%; border-radius: 18px; display: block; aspect-ratio: 4 / 3.4; object-fit: cover; }

.hero-tag {
  position: absolute;
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--white);
  border: 2px solid var(--ink); border-radius: 14px;
  padding: 0.7rem 1rem;
  font-size: 0.8rem; color: var(--muted);
  box-shadow: 5px 5px 0 rgba(25,21,18,0.9);
  animation: bob 5s ease-in-out infinite;
}
.hero-tag b { color: var(--ink); }
.hero-tag i { color: var(--orange); font-size: 1.2rem; }
.tag-a { left: -20px; top: 26px; }
.tag-b { right: -16px; bottom: 30px; animation-delay: 1.4s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 991.98px) {
  .tag-a { left: 6px; }
  .tag-b { right: 6px; }
}

/* ============ marquee ============ */
.ic-marquee {
  background: var(--ink);
  overflow: hidden; padding: 1.3rem 0;
}
.ic-marquee-track { display: flex; width: max-content; animation: icMarquee 40s linear infinite; }
.ic-marquee:hover .ic-marquee-track { animation-play-state: paused; }
.ic-marquee-track span {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.15rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--paper); white-space: nowrap;
}
.ic-marquee-track i { font-style: normal; color: var(--orange); margin: 0 1.2rem; }
@keyframes icMarquee { to { transform: translateX(-50%); } }

/* ============ about ============ */
.about-shot { position: relative; }
.about-shot img {
  width: 100%; border-radius: 20px; display: block;
  border: 3px solid var(--ink);
  box-shadow: 12px 12px 0 var(--orange);
  aspect-ratio: 4 / 3.6; object-fit: cover;
}
.about-badge {
  position: absolute; right: -14px; bottom: 30px;
  background: var(--ink); color: var(--paper);
  border-radius: 14px; padding: 0.9rem 1.2rem;
  box-shadow: 5px 5px 0 var(--caution);
  animation: bob 5s ease-in-out infinite;
}
.about-badge b { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--caution); }
.about-badge span { font-size: 0.75rem; color: var(--muted-dark); }

/* ============ why us ============ */
.why-card {
  display: flex; gap: 1.4rem; height: 100%;
  background: var(--ink-2);
  border: 1px solid rgba(250,247,240,0.1);
  border-radius: 20px; padding: 2rem;
  transition: transform 0.45s var(--ease-out), border-color 0.3s;
}
.why-card:hover { transform: translateY(-8px); border-color: rgba(255,196,46,0.5); }
.why-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 2.6rem; line-height: 1; flex-shrink: 0;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--orange);
}
.why-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--white); margin-bottom: 0.6rem; }
.why-card h3 i { color: var(--caution); margin-right: 0.5rem; }
.why-card p { color: var(--muted-dark); font-size: 0.92rem; line-height: 1.7; margin: 0; }

/* ============ courses ============ */
.course-card {
  height: 100%;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 7px 7px 0 rgba(25,21,18,0.12);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.course-card:hover { transform: translate(-3px, -3px); box-shadow: 12px 12px 0 var(--orange); }
.course-img { position: relative; overflow: hidden; }
.course-img img {
  width: 100%; aspect-ratio: 16 / 9.5; object-fit: cover; display: block;
  transition: transform 0.6s var(--ease-out);
}
.course-card:hover .course-img img { transform: scale(1.06); }
.course-pill {
  position: absolute; top: 12px; left: 12px;
  background: var(--caution); color: var(--ink);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  border: 2px solid var(--ink); border-radius: 100px;
  padding: 0.3rem 0.8rem;
}
.course-body { padding: 1.4rem 1.5rem 1.6rem; }
.course-meta { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-deep); }
.course-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; margin: 0.5rem 0 0.9rem; min-height: 2.9rem; }
.course-link {
  color: var(--ink); font-weight: 700; font-size: 0.88rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.course-link i { font-size: 0.72rem; transition: transform 0.3s var(--ease-out); }
.course-link:hover { color: var(--orange-deep); }
.course-link:hover i { transform: translateX(5px); }

/* ============ testimonials ============ */
.ic-quote {
  height: 100%; margin: 0;
  background: var(--white);
  border: 2px solid var(--ink); border-radius: 20px;
  padding: 2.2rem;
  box-shadow: 8px 8px 0 rgba(25,21,18,0.1);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.ic-quote:hover { transform: translate(-3px, -3px); box-shadow: 12px 12px 0 var(--caution); }
.stars { color: var(--orange); font-size: 0.8rem; letter-spacing: 0.25em; margin-bottom: 1.2rem; }
.ic-quote blockquote {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.15rem; line-height: 1.55; color: var(--ink);
  margin-bottom: 1.6rem;
}
.ic-quote figcaption { display: flex; align-items: center; gap: 0.9rem; }
.ic-avatar {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--orange); color: var(--white);
  border: 2px solid var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  box-shadow: 3px 3px 0 var(--ink);
}
.ic-avatar.alt { background: var(--caution); color: var(--ink); }
.ic-quote figcaption b { display: block; font-size: 0.95rem; }
.ic-quote figcaption small { color: var(--muted); font-size: 0.78rem; }

/* ============ enroll ============ */
.enroll-card {
  position: relative; overflow: hidden;
  background: var(--ink);
  border-radius: 26px;
  text-align: center;
  padding: 0 2rem 4rem;
  border: 3px solid var(--ink);
  box-shadow: 14px 14px 0 rgba(255,90,31,0.35);
}
.enroll-card .hazard-bar.top { margin: 0 -2rem 3rem; }
.enroll-form { max-width: 760px; margin: 2rem auto 0; }
.ic-input {
  background: rgba(250,247,240,0.06);
  border: 2px solid rgba(250,247,240,0.2);
  border-radius: 12px; color: var(--white);
  padding: 0.85rem 1.1rem; font-size: 0.92rem;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.ic-input::placeholder { color: rgba(250,247,240,0.4); }
.ic-input:focus {
  background: rgba(250,247,240,0.1); color: var(--white);
  border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,90,31,0.2);
}
select.ic-input option { color: var(--ink); }
.enroll-card .ic-btn-orange { box-shadow: 5px 5px 0 rgba(250,247,240,0.9); }
.enroll-card .ic-btn-orange:hover { box-shadow: 8px 8px 0 rgba(250,247,240,0.9); }

.ic-success { display: none; padding: 2.5rem 0 0.5rem; }
.ic-success.show { display: block; animation: icPop 0.6s var(--ease-out); }
.ic-success i { font-size: 3rem; color: var(--caution); margin-bottom: 1rem; }
.ic-success h3 { font-family: var(--font-display); font-weight: 600; color: var(--white); margin-bottom: 0.5rem; }
.ic-success p { color: var(--muted-dark); }
@keyframes icPop { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* ============ footer ============ */
.ic-footer { background: var(--ink); }
.ic-footer .container { padding: 2rem 15px; }
.ic-foot-note { color: rgba(250,247,240,0.45); font-size: 0.85rem; margin: 0; }

/* ============ scroll reveals ============ */
[data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-reveal].in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .ic-hero .line-in { transform: none; }
}
