/* ==========================================================================
   ICC Council (icc-council.com) — Custom Styles
   Design language: an accredited institution. A seal/medallion motif
   (concentric rings, roman numerals) stands in for credibility and
   established trust, instead of the signage, paperwork, or SaaS motifs
   used on the sibling ICCouncil sites.
   ========================================================================== */

:root {
  --ink:        #201A1D;
  --ink-soft:   #6B5F63;
  --paper:      #FAF7F4;
  --panel:      #F1EAE3;
  --card:       #FFFFFF;
  --burgundy:   #7A2333;
  --burgundy-d: #5E1A27;
  --gold:       #B8912F;
  --gold-light: #D9BA6E;
  --dark:       #241A1C;
  --dark-2:     #2E2124;
  --line:       rgba(32, 26, 29, 0.12);
  --line-light: rgba(250, 247, 244, 0.18);

  --font-display: 'Playfair Display', serif;
  --font-body: 'Public Sans', sans-serif;
  --font-mono: 'Courier Prime', monospace;
}

* { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
}

a { text-decoration: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

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

/* ==========================================================================
   Brand / Buttons
   ========================================================================== */

.brand { display: flex; align-items: center; gap: 0.7rem; }

.brand-seal {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--burgundy);
  flex: none;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
}
.brand-footer .brand-text { color: var(--paper); }
.brand-footer .brand-seal { color: var(--gold-light); border-color: var(--gold-light); outline-color: var(--gold-light); }

.btn-cta {
  background: var(--burgundy);
  border: 1px solid var(--burgundy);
  color: #fff !important;
  font-family: var(--font-body);
  font-weight: 700;
  padding-inline: 1.6rem;
  border-radius: 4px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn-cta:hover {
  background: var(--burgundy-d);
  border-color: var(--burgundy-d);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(122, 35, 51, 0.5);
  color: #fff !important;
}
.btn-cta-ghost {
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-weight: 700;
  border-radius: 4px;
  transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.btn-cta-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

.btn-cta-light {
  background: var(--gold);
  color: var(--dark) !important;
  border: none;
  font-weight: 700;
  padding-inline: 1.6rem;
  border-radius: 4px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-cta-light:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(0,0,0,0.45); }

/* ==========================================================================
   Navbar
   ========================================================================== */

.custom-navbar {
  background: rgba(250, 247, 244, 0.92);
  backdrop-filter: blur(6px);
  padding-block: 1.1rem;
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
}
.custom-navbar.scrolled {
  box-shadow: 0 8px 22px -16px rgba(32,26,29,0.35);
  border-bottom-color: var(--line);
  padding-block: 0.65rem;
}
.custom-navbar .nav-link { color: var(--ink-soft); font-weight: 600; padding-inline: 0.85rem; }
.custom-navbar .nav-link:hover { color: var(--burgundy); }
.navbar-toggler { border-color: var(--line); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(32,26,29,0.85)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--card);
    margin-top: 1rem;
    padding: 1rem 1.25rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 24px 48px -20px rgba(32,26,29,0.25);
    border: 1px solid var(--line);
  }
  .navbar-collapse .nav-link { padding-block: 0.55rem; }
  .navbar-collapse li.ms-lg-3 { margin-top: 0.6rem; }
}

/* ==========================================================================
   Eyebrow label
   ========================================================================== */

.eyebrow-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 1.1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--gold);
}
.eyebrow-center { text-align: center; }
.eyebrow-light { color: var(--gold-light); border-bottom-color: var(--gold-light); }

/* ==========================================================================
   Seal / medallion (signature element)
   ========================================================================== */

.seal { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.seal-ring {
  border-radius: 50%;
  border: 2px solid var(--gold);
  outline: 1px solid var(--gold);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
}
.seal-lg .seal-ring { width: 84px; height: 84px; outline-offset: 5px; }
.seal-lg .seal-num { font-size: 1.7rem; line-height: 1; }
.seal-lg .seal-label { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.15rem; }
.seal-sm .seal-ring { width: 54px; height: 54px; outline-offset: 3px; }
.seal-sm .seal-num { font-size: 1.15rem; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { position: relative; padding-top: 6rem; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(32,26,29,0.94) 25%, rgba(32,26,29,0.82) 52%, rgba(32,26,29,0.55) 80%);
}
.hero-content { position: relative; z-index: 1; padding-block: 5rem 6rem; }
.hero .eyebrow-label { color: var(--gold-light); border-bottom-color: var(--gold-light); }
.hero-title {
  color: #fff;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  margin-bottom: 1.3rem;
}
.hero-title em { color: var(--gold-light); font-style: italic; }
.hero-sub { color: rgba(250,247,244,0.82); font-size: 1.12rem; max-width: 34rem; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn-cta-ghost { border-color: rgba(250,247,244,0.55); color: #fff; }
.hero .btn-cta-ghost:hover { background: rgba(250,247,244,0.12); color: #fff; border-color: #fff; }

.hero-trust {
  position: relative; z-index: 1;
  background: rgba(20, 15, 16, 0.55);
  border-top: 1px solid var(--line-light);
  padding-block: 1.8rem;
}
.hero-trust-inner {
  display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap;
}
.hero-trust-text strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.05rem; }
.hero-trust-text small { color: rgba(250,247,244,0.68); font-size: 0.85rem; }
.hero-trust-divider { width: 1px; height: 40px; background: var(--line-light); display: none; }
@media (min-width: 768px) { .hero-trust-divider { display: block; } }

/* ==========================================================================
   Sections — shared
   ========================================================================== */

.section { padding-block: 6rem; }
.section-title { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin-bottom: 0.5rem; }
.section-title-light { color: var(--paper); }

.reveal { opacity: 0; transform: translateY(24px); }
.js .reveal { transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in-view { opacity: 1; transform: translateY(0); }
.delay-1.in-view, .delay-1 { transition-delay: 0.08s; }
.delay-2.in-view, .delay-2 { transition-delay: 0.16s; }

/* ==========================================================================
   Courses
   ========================================================================== */

.section-courses { background: var(--paper); }
.course-card {
  background: var(--card);
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.course-card:hover { transform: translateY(-6px); box-shadow: 0 28px 48px -28px rgba(32,26,29,0.32); }
.course-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.course-media img { width: 100%; height: 100%; object-fit: cover; }
.ribbon {
  position: absolute; top: 0.9rem; left: -0.4rem;
  background: var(--burgundy);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.9rem 0.4rem 1rem;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 50%);
}
.course-body { padding: 1.7rem 1.6rem 1.9rem; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-size: 1.32rem; margin-bottom: 0.8rem; }
.course-body p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.3rem; flex: 1; }
.course-link { color: var(--burgundy); font-weight: 700; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.course-link i { transition: transform 0.15s ease; }
.course-link:hover i { transform: translateX(4px); }
.course-link:hover { color: var(--burgundy-d); }

/* ==========================================================================
   Why choose us — credential rows
   ========================================================================== */

.section-why { background: var(--dark); }
.credential-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding-block: 1.7rem;
  border-bottom: 1px solid var(--line-light);
}
.credential-row-last { border-bottom: none; }
.credential-text h3 { color: var(--paper); font-size: 1.22rem; margin-bottom: 0.5rem; }
.credential-text p { color: rgba(250,247,244,0.66); margin: 0; font-size: 0.98rem; }

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.section-faq { background: var(--panel); }

.faq-accordion .accordion-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-accordion .accordion-button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
  background: var(--card);
  padding: 1.3rem 1.5rem;
  box-shadow: none !important;
}
.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--burgundy);
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.faq-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23B8912F'%3e%3cpath fill-rule='evenodd' d='M8 1.5a.5.5 0 0 1 .5.5v5.5H14a.5.5 0 0 1 0 1H8.5V14a.5.5 0 0 1-1 0V8.5H2a.5.5 0 0 1 0-1h5.5V2a.5.5 0 0 1 .5-.5z'/%3e%3c/svg%3e");
  width: 1.1rem; height: 1.1rem; background-size: 1.1rem;
}
.faq-accordion .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%237A2333'%3e%3cpath fill-rule='evenodd' d='M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8z'/%3e%3c/svg%3e");
  transform: none;
}
.faq-accordion .accordion-body {
  padding: 1.1rem 1.5rem 1.5rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ==========================================================================
   Closing band
   ========================================================================== */

.closing-band {
  position: relative;
  background: linear-gradient(135deg, var(--burgundy-d), var(--dark-2));
  padding-block: 6rem;
  overflow: hidden;
}
.closing-seal {
  position: absolute;
  top: 50%; left: 50%;
  width: 420px; height: 420px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.closing-seal svg { width: 100%; height: 100%; }
.closing-seal circle { fill: none; stroke: rgba(216, 186, 110, 0.16); stroke-width: 1.5; }
.closing-text {
  color: rgba(250,247,244,0.88);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  max-width: 44rem;
  margin-inline: auto;
  margin-bottom: 2.2rem;
  line-height: 1.6;
  position: relative;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { background: var(--dark-2); padding-block: 4.5rem 2rem; }
.footer-tagline { color: rgba(250,247,244,0.6); font-size: 0.92rem; margin: 1rem 0 1.2rem; max-width: 22rem; }
.footer-social { display: flex; gap: 0.8rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-light);
  color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }

.footer-heading {
  color: var(--paper); font-family: var(--font-display); font-size: 1.05rem;
  letter-spacing: 0.03em; margin-bottom: 1.2rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a { color: rgba(250,247,244,0.62); font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold-light); }

.footer-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.footer-form input {
  background: rgba(250,247,244,0.06);
  border: 1px solid var(--line-light);
  color: var(--paper);
  flex: 1 1 auto;
  min-width: 10rem;
}
.footer-form input::placeholder { color: rgba(250,247,244,0.4); }
.footer-form input:focus { background: rgba(250,247,244,0.09); color: var(--paper); box-shadow: none; border-color: var(--gold); }

.footer-rule { border-color: var(--line-light); margin: 3rem 0 1.5rem; }
.footer-bottom { color: rgba(250,247,244,0.5); font-size: 0.85rem; }
.footer-bottom a { color: rgba(250,247,244,0.5); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ==========================================================================
   Responsive tweaks
   ========================================================================== */

@media (max-width: 991.98px) {
  .hero { padding-top: 5.5rem; }
  .hero-trust-inner { gap: 1.2rem; }
}

@media (max-width: 575.98px) {
  .section { padding-block: 4rem; }
  .credential-row { gap: 1rem; }
}
