/* ==================================================
   01. ROOT VARIABLES
   ================================================== */
:root{
  --bar:#2b2b2b;
  --bg:#4a4a4a;
  --panel:#454545;
  --ink:#ffffff;
  --mute:#cfcfcf;
  --coral:#e06b66;
  --line:#5c5c5c;

  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
/* ==================================================
   02. GLOBAL RESET & BASE STYLES
   ================================================== */
html{
  scroll-behavior:smooth;
  scroll-padding-top:70px;
}
*{
  box-sizing:border-box;
}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:300 17px/1.65 "Open Sans", Arial, sans-serif;
  background-image:
    radial-gradient(
      circle at 50% 100%,
      transparent 0 22px,
      rgba(255,255,255,.035) 23px 24px,
      transparent 25px
    );
  background-size:56px 28px;
  overflow-x:hidden;
}
a{
  color:inherit;
}
:focus-visible{
  outline:2px solid var(--coral);
  outline-offset:3px;
}
::selection{
  background:var(--coral);
  color:#fff;
}

/* ==================================================
   03. TYPOGRAPHY
   ================================================== */
.display{
  font-family:"Pathway Gothic One","Arial Narrow",Arial,sans-serif;
  font-weight:400;
  letter-spacing:.42em;
  line-height:1.05;
  margin:0;
}
.title{
  font-size:clamp(2.2rem,5.5vw,3.6rem);
  text-align:center;
  padding-left:.22em;
  letter-spacing:.22em;
  margin-bottom:2rem;
}
.wrap h2.title{
  margin-bottom:3rem;
}
.lead{
  max-width:60ch;
  margin:1.4rem auto 3rem;
  text-align:center;
  color:var(--mute);
}
h3.display{
  color:var(--coral);
  font-size:2rem;
  letter-spacing:.18em;
  margin-bottom:2rem;
}
.prose h3{
  color:var(--coral);
  font-size:2rem;
  letter-spacing:.15em;
  margin-top:3rem;
  margin-bottom:1.5rem;
}

/* ==================================================
   04. GLOBAL LAYOUT
   ================================================== */
.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:2.5rem 1.2rem;
}
.band{
  background:var(--bar);
}
.page{
  display:none;
}
.page.show{
  display:block;
}
.section-centre{
  text-align:center;
  margin-top:1rem;
}

/* ==================================================
   05. NAVIGATION
   ================================================== */
nav{
  position:sticky;
  top:0;
  z-index:5;
  background:var(--bar);
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:.4rem 3.2rem;
  padding:1.4rem;
}
nav a{
  text-decoration:none;
  font-size:1.25rem;
  letter-spacing:.16em;
  padding:.2rem 0;
}
nav a:hover,
nav a.on{
  color:var(--coral);
}
.hamburger{
  display:none;
  background:none;
  border:none;
  color:#fff;
  font-size:2rem;
  cursor:pointer;
}
.nav-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:.4rem 3.2rem;
}

/* ==================================================
   06. PROMOTIONAL TICKER
   ================================================== */
.promo-ticker{
  background:var(--coral);
  color:#fff;
  height:26px;
  overflow:hidden;
  display:flex;
  align-items:center;
  width:100%;
  position:relative;
}
.promo-track{
  display:flex;
  white-space:nowrap;
  animation:ticker 50s linear infinite;
  font-size:.82rem;
  font-weight:600;
  letter-spacing:.08em;
  will-change:transform;
}
.promo-track span{
  margin-right:3rem;
}
.promo-track a{
  background:#fff;
  color:var(--coral);
  padding:.1rem .45rem;
  margin-left:.4rem;
  border-radius:3px;
  text-decoration:none;
  font-weight:700;
}
.promo-track a:hover{
  color:#fff;
}
.promo-ticker:hover .promo-track,
.promo-ticker:focus-within .promo-track{
  animation-play-state:paused;
}

@media (prefers-reduced-motion:reduce){
  .promo-track{
    animation:none;
    flex-wrap:wrap;
    justify-content:center;
    gap:.4rem 2rem;
  }
}

/* ==================================================
   06A. ANIMATIONS
   ================================================== */
@keyframes ticker{
  from{
    transform:translateX(100%);
  }
  to{
    transform:translateX(-100%);
  }
}

/* ==================================================
   07. HERO SECTION
   ================================================== */
header.hero{
  text-align:center;
  padding:6rem 1.2rem 5rem;
  min-height:500px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:
    linear-gradient(
      rgba(43,43,43,.50),
      rgba(43,43,43,.50)
    ),
    url('/assets/images/hero.jpg');

  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
.hero h1{
  font-size:clamp(3.2rem,11vw,8.5rem);
  letter-spacing:.25em;
  padding-left:0;
  text-shadow:
    0 2px 8px rgba(0,0,0,.5),
    0 4px 20px rgba(0,0,0,.4);
}
.hero h2{
  color:#ff8a80;
  text-shadow:0 2px 8px rgba(0,0,0,.5);
}
.hero p{
  font-size:clamp(.95rem,2.6vw,1.7rem);
  letter-spacing:.28em;
  margin:2.2rem 0 0;
  text-shadow:0 2px 8px rgba(0,0,0,.5);
}
.hero p:last-of-type{
  max-width:1100px;
  margin-left:auto;
  margin-right:auto;
}

/* ==================================================
   08. BUTTONS & LINKS
   ================================================== */
.btn{
  display:inline-block;
  background:var(--coral);
  color:#fff;
  padding:1rem 2rem;

  border:0;
  border-radius:2px;
  text-decoration:none;
  cursor:pointer;
  font:inherit;
  font-size:1.15rem;
  font-weight:600;
  letter-spacing:.18em;
  transition:background .2s ease;
}
.btn:hover{
  background:#d9534f;
}
.btn:focus-visible{
  outline:2px solid #fff;
  outline-offset:4px;
}
.hero .btn{
  margin-top:2.6rem;
  display:inline-block;
  width:auto;
  align-self:center;
}
.more{
  display:inline-block;
  margin-top:1.25rem;
  color:var(--coral);
  font-size:.95rem;
  font-weight:600;
  letter-spacing:.15em;
}

/* ==================================================
   09. CARD GRID LAYOUT
   ================================================== */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:2rem;
}
.card{
  display:block;
  background:var(--panel);
  padding:2rem;
  border-top:2px solid var(--coral);
  box-shadow:0 6px 18px rgba(0,0,0,.25);
  text-decoration:none;
  transition:
    background .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}
.card,
.card:visited,
.card:hover,
.card *,
.card *:visited,
.card *:hover{
  text-decoration:none;
}
.card:hover{
  background:#4d4d4d;
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(0,0,0,.28);
}
.card h2,
.card h3{
  color:var(--coral);
  font-size:1.7rem;
  letter-spacing:.08em;
  margin-bottom:1.5rem;
}
.card p{
  margin:0;
  color:#e5e5e5;
  line-height:1.7;
}

/* ==================================================
   10. WORKSHOP PROMOTION SECTION
   ================================================== */
.workshops-promo{
  background:var(--panel);
  border-top:1px solid var(--coral);
  border-bottom:1px solid var(--line);
  padding:2rem 1.2rem;
}
.workshops-promo .wrap{
  max-width:700px;
  text-align:center;
  padding:0 1.2rem;
}
.workshops-promo h2{
  font-size:clamp(2.6rem,6vw,4rem);
  letter-spacing:.22em;
  margin:.5rem 0 1rem;
}
.workshops-promo .btn{
  display:inline-block;
  margin:1rem auto 0;
  text-align:center;
}
.promo-tag{
  color:var(--coral);
  font-size:.85rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.25em;
  margin:0 0 .5rem;
}

/* ==================================================
   11. TRAINING OFFER CARDS
   ================================================== */
.offer-grid{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:1.5rem;
  margin:1.25rem 0;
}
.offer-card{
  background:rgba(0,0,0,.12);
  border-top:2px solid var(--coral);
  padding:1rem 1.5rem;
  max-width:260px;
  text-align:center;
}

.offer-card strong{
  display:block;
  color:var(--coral);
  font-size:1.8rem;
  letter-spacing:.1em;
  margin-bottom:.5rem;
}
.offer-card span{
  display:block;
  font-size:.95rem;
  line-height:1.5;
}

/* ==================================================
   12. TRAINING COURSE LISTS
   ================================================== */
.courses{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:1.5rem;
  margin:0;
  padding:0;
  list-style:none;
}
.courses li{
  background:var(--panel);
  border-top:2px solid var(--coral);
  padding:1.5rem;
}
.courses strong{
  display:block;
  color:#fff;
  font-size:1.25rem;
  font-weight:600;
  margin-bottom:.75rem;
}
.courses span{
  display:block;
  color:#e8e8e8;
  font-size:1rem;
  line-height:1.6;
}
.courses .meta{
  display:block;
  margin-top:1rem;
}
.courses .label{
  display:inline-block;
  background:var(--coral);
  color:#fff;
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding:.25rem .6rem;
  border-radius:2px;
  margin-bottom:.5rem;
}
.courses .meta span:last-child{
  display:block;
  color:#e8e8e8;
  line-height:1.6;
}

/* ==================================================
   13. TRAINING NAVIGATION
   ================================================== */
.sub{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:.5rem 2rem;
  border-bottom:1px solid var(--line);
  margin-bottom:3rem;
}
.sub a{
  text-decoration:none;
  letter-spacing:.2em;
  padding:.9rem .2rem;
  border-bottom:2px solid transparent;
  margin-bottom:-1px;
}
.sub a.on{
  color:var(--coral);
  border-color:var(--coral);
}

/* ==================================================
   14. SECTION HEADINGS
   ================================================== */
.courses-heading{
  color:var(--coral);
  font-size:2.2rem;
  letter-spacing:.15em;
  text-align:center;
  margin:2rem auto;
}
.courses-heading::after{
  content:"";
  display:block;
  width:120px;
  height:2px;
  background:var(--coral);
  margin:1rem auto 0;
}
.courses-section{
  margin-bottom:4rem;
}

/* ==================================================
   15. MODULAR TRAINING OPTIONS
   ================================================== */
.options{
  display:grid;
  grid-template-columns:
    repeat(auto-fit,minmax(240px,1fr));
  gap:1.5rem;
  margin:2rem 0;
}
.option{
  background:var(--panel);
  border-top:2px solid var(--coral);
  padding:1.5rem;
  text-align:center;
}
.option h4{
  margin:0 0 .6rem;
  color:#fff;
  font-size:1.25rem;
  letter-spacing:.08em;
}
.option p{
  margin:0;
  color:#e8e8e8;
}

/* ==================================================
   16. MULTI-COLUMN CONTENT LAYOUTS
   ================================================== */
.cols{
  display:grid;
  grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));
  gap:3rem;
}
.cols h3{
  font-size:1.7rem;
  letter-spacing:.3em;
  color:var(--coral);
  margin-bottom:1rem;
}
.cols ul{
  margin:0;
  padding:0;
  list-style:none;
}
.cols li{
  padding:.7rem 0;
  border-bottom:1px solid var(--line);
}

/* ==================================================
   17. CONTENT / PROSE
   ================================================== */
.prose{
  max-width:62ch;
  margin:0 auto;
}
.resource-link{
    color:var(--coral);
    font-weight:600;
    text-decoration:none;
    border-bottom:1px solid var(--coral);
    transition:all .2s ease;
}
.resource-link:hover{
    color:#fff;
    border-bottom-color:#fff;
}

/* ==================================================
   18. CALL TO ACTION
   ================================================== */
.cta{
  text-align:center;
  margin-top:2.5rem;
}
/* ==================================================
   19. FORMS
   ================================================== */
form{
  max-width:560px;
  margin:0 auto;
  display:grid;
  gap:1rem;
}
label{
  font-size:.85rem;
  letter-spacing:.15em;
}
input,
select,
textarea{
  width:100%;
  background:var(--panel);
  color:var(--ink);
  border:1px solid var(--line);
  border-radius:0;
  padding:.8rem;
  font:inherit;
}
form .btn{
  justify-self:center;
}
#ok{
  min-height:1.6em;
  margin:0;
  text-align:center;
  color:var(--coral);
}

/* ==================================================
   20. FOOTER
   ================================================== */
footer{
  background:var(--bar);
  text-align:center;
  padding:1rem;
  font-size:.85rem;
  letter-spacing:.05em;
  color:var(--mute);
}
footer a{
  text-decoration:none;
  margin:0 .8rem;
}
.footer-contact{
  font-style:normal;
  margin:1rem 0;
  font-size:.95rem;
  letter-spacing:.08em;
}
.footer-contact p{
  margin:.3rem 0;
}
.footer-contact a{
  color:#fff;
  text-decoration:none;
}
.footer-contact a:hover{
  color:var(--coral);
}
.footer-links{
  margin:1rem 0;
}
.footer-links a{
  margin:0 .8rem;
  text-decoration:none;
}

/* ==================================================
   21. BACK TO TOP BUTTON
   ================================================== */
#backToTop{
  position:fixed;
  bottom:20px;
  right:20px;
  width:52px;
  height:52px;
  border:none;
  border-radius:50%;
  background:var(--coral);
  color:#fff;
  font-size:1.2rem;
  cursor:pointer;
  z-index:999;
  box-shadow:0 4px 12px rgba(0,0,0,.3);
  opacity:0;
  visibility:hidden;
  transform:translateY(12px);
  transition:
    opacity .3s ease,
    transform .3s ease,
    visibility .3s ease,
    background .2s ease;
}
#backToTop:hover{
  background:#d9534f;
  transform:translateY(-2px);
}
#backToTop.show{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

/* ==================================================
   22. COOKIE BANNER
   ================================================== */
.cookie-banner{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  background:#222;
  color:#fff;
  padding:1rem;
  z-index:9999;
  box-shadow:0 -2px 10px rgba(0,0,0,.3);
}
.cookie-banner p{
  margin:0 0 1rem;
}
.cookie-actions{
  display:flex;
  gap:1rem;
}
.cookie-banner .secondary{
  background:transparent;
  border:1px solid #fff;
}

/* ==================================================
   23. RESPONSIVE STYLES
   ================================================== */
@media (min-width:1600px){
  nav a{
    font-size:1.35rem;
  }
}
@media (max-width:768px){

  /* ------------------------------
     Navigation
     ------------------------------ */
  nav{
    justify-content:flex-start;
    padding:.75rem;
  }
  .hamburger{
    display:block;
  }
  .nav-links{
    display:none;
    width:100%;
    flex-direction:column;
    gap:.75rem;
    margin-top:1rem;
  }
  .nav-links.open{
    display:flex;
  }
  nav a{
    font-size:1rem;
    letter-spacing:.12em;
    padding:.5rem 0;
  }
  /* ------------------------------
     Hero
     ------------------------------ */
  .hero h1{
    font-size:2.8rem;
    padding-left:.2em;
  }
  .hero p{
    font-size:1rem;
    letter-spacing:.12em;
  }

  /* ------------------------------
     Page Titles
     ------------------------------ */
  .title{
    font-size:1.8rem;
    padding-left:.2em;
  }

  /* ------------------------------
     Cards
     ------------------------------ */
  .card h2{
    font-size:1.3rem;
    letter-spacing:.08em;
  }
  .card h3,
  .cols h3{
    font-size:1.3rem;
    letter-spacing:.15em;
  }

  /* ------------------------------
     Training Navigation
     ------------------------------ */
  .sub{
    gap:.25rem 1rem;
  }
  .sub a{
    font-size:.9rem;
    letter-spacing:.08em;
    padding:.6rem .1rem;
  }

  /* ------------------------------
     Workshop Offers
     ------------------------------ */
  .offer-grid{
    gap:1rem;
  }
  .offer-card{
    max-width:100%;
  }

  /* ------------------------------
     Back To Top
     ------------------------------ */
  #backToTop{
    width:46px;
    height:46px;
    right:16px;
    bottom:16px;
    font-size:1rem;
  }

}