*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Parametric colour system */

/* Site wide defaults */
:root {
  /* Main accent pair used in logo, buttons and hero */
  --accent-1: #22c55e;
  --accent-2: #0ea5e9;

  /* Hero gradient spots */
  --hero-spot-1: #0ea5e9;
  --hero-spot-2: #22c55e;

  /* Contact section gradient */
  --contact-1: #0f172a;
  --contact-2: #1f2937;
}

/* Per page theme override for the B-ASH-001 course page
   Use with body class "theme-course-bash001"
*/
body.theme-course-bash001 {
  --accent-1: #a855f7;
  --accent-2: #f97316;
  --hero-spot-1: #a855f7;
  --hero-spot-2: #f97316;
  --contact-1: #1e293b;
  --contact-2: #020617;
}

/* Per page theme override for a property themed page
   Use with body class "theme-property"
*/
body.theme-property {
  --accent-1: #22c55e;
  --accent-2: #16a34a;
  --hero-spot-1: #16a34a;
  --hero-spot-2: #22c55e;
  --contact-1: #064e3b;
  --contact-2: #022c22;
}

html {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #0f172a;
  background-color: #f8fafc;
}

body {
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #0f766e;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout helpers */

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  color: #e5e7eb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}

/* Logo */

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #0f172a;
  font-weight: 700;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-weight: 600;
  font-size: 0.98rem;
}

.logo-tagline {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Navigation */

.main-nav {
  display: flex;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.main-nav li {
  position: relative;
}

/* Parent items that have a submenu */

.main-nav li.has-children > a::after {
  content: "▾";
  font-size: 0.7rem;
  margin-left: 0.25rem;
  opacity: 0.7;
}

/* Parent highlight on hover (desktop) */

.main-nav li:hover > a {
  background-color: rgba(148, 163, 184, 0.24);
  color: #f9fafb;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #e5e7eb;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  background-color: rgba(148, 163, 184, 0.24);
  color: #f9fafb;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  background-color: #e5e7eb;
}

/* Submenu */

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  padding: 0.4rem 0.2rem;
  margin: 0;
  list-style: none;
  background-color: #0f172a;
  border-radius: 0.85rem;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.45);
  z-index: 40;
}

.submenu li a {
  display: block;
  padding: 0.4rem 0.8rem;
  border-radius: 0.6rem;
  font-size: 0.86rem;
  color: #e5e7eb;
  white-space: nowrap;
}

.submenu li a:hover {
  background-color: rgba(148, 163, 184, 0.32);
}

/* Show submenu on hover for desktop */

.main-nav li.has-children:hover > .submenu {
  display: block;
}

/* Hero */

.hero {
  background: radial-gradient(circle at top left, var(--hero-spot-1) 0, transparent 55%),
    radial-gradient(circle at bottom right, var(--hero-spot-2) 0, transparent 60%);
  padding-block: 3.5rem 3rem;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin: 0 0 1rem;
  color: #0f172a;
}

.hero-text p {
  margin: 0 0 1rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-highlight {
  background-color: rgba(15, 23, 42, 0.84);
  color: #e5e7eb;
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  max-width: 32rem;
}

/* Hero media */

.hero-media {
  display: grid;
  gap: 1rem;
}

.hero-image-wrapper {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.3);
}

.hero-card {
  background-color: #0f172a;
  color: #e5e7eb;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
}

.hero-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.hero-card ul {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #0f172a;
}

.btn.primary:hover {
  filter: brightness(1.03);
}

.btn.ghost {
  background: transparent;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.15);
}

.btn.ghost:hover {
  background-color: rgba(248, 250, 252, 0.8);
}

/* Sections */

.section {
  padding-block: 3rem;
}

.section-alt {
  background-color: #eff3f9;
}

.section-header {
  max-width: 44rem;
  margin-bottom: 1.75rem;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

/* Cards and grids */

.services-grid {
  display: grid;
  gap: 1.75rem;
}

.card {
  background-color: #ffffff;
  border-radius: 1.1rem;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.feature-list {
  margin: 0.6rem 0 0.6rem;
  padding-left: 1.1rem;
  font-size: 0.93rem;
}

.feature-list li + li {
  margin-top: 0.25rem;
}

.card-footer-text {
  font-size: 0.82rem;
  color: #6b7280;
}

/* Steps */

.steps-grid {
  display: grid;
  gap: 1.35rem;
}

.step-card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.2rem 1.3rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  position: relative;
}

.step-number {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #9ca3af;
}

/* Sectors layout */

.sectors-layout {
  display: grid;
  gap: 2rem;
}

.sectors-aside .card {
  height: 100%;
}

/* About layout */

.about-layout {
  display: grid;
  gap: 2rem;
}

.key-facts {
  margin: 0;
}

.key-facts div + div {
  margin-top: 0.6rem;
}

.key-facts dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.key-facts dd {
  margin: 0.1rem 0 0;
}

/* Contact */

.contact-section {
  background: linear-gradient(135deg, var(--contact-1), var(--contact-2));
  color: #e5e7eb;
}

.contact-inner {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

.contact-section h2 {
  margin-top: 0;
}

.contact-email a {
  color: #22c55e;
}

.contact-form {
  background-color: rgba(15, 23, 42, 0.86);
  border-radius: 1.1rem;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.form-row {
  margin-bottom: 0.9rem;
}

.form-row label {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 0.25rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.5rem 0.6rem;
  font: inherit;
  background-color: rgba(15, 23, 42, 0.95);
  color: #f9fafb;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid #22c55e;
  outline-offset: 1px;
}

.form-note {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}

/* Footer */

.site-footer {
  padding-block: 1.5rem;
  background-color: #020617;
  color: #9ca3af;
  font-size: 0.82rem;
}

.footer-inner {
  text-align: center;
}

.footer-meta {
  margin-top: 0.25rem;
}

/* Responsive styles */

@media (min-width: 720px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sectors-layout,
  .about-layout,
  .contact-inner {
    grid-template-columns: 3fr 2.2fr;
  }
}

@media (max-width: 719px) {
  .header-inner {
    gap: 0.75rem;
  }

  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background-color: rgba(15, 23, 42, 0.98);
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 0.6rem 1rem 0.9rem;
  }

  .main-nav li {
    position: static;
  }

  .submenu {
    position: static;
    display: block;
    box-shadow: none;
    border-radius: 0.5rem;
    padding-left: 0.6rem;
    margin-top: 0.1rem;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }
}