/* Automationhub360 — soft neutral, large type, generous space */

:root {
  --bg: #f8f7f4;
  --bg-soft: #efeee9;
  --surface: #ffffff;
  --ink: #161616;
  --ink-muted: #5a5a5a;
  --line: #dddcd6;
  --accent: #0f4c3a;
  --accent-hover: #0a3a2c;
  --accent-soft: #e6efeb;
  --gold: #b8956c;
  --error: #8b2e2e;
  --success: #0f4c3a;
  --radius: 2px;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2.5vw, 2rem);
  --max: 1120px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(15, 76, 58, 0.06), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(184, 149, 108, 0.08), transparent 50%);
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

p {
  margin: 0 0 1em;
  color: var(--ink-muted);
}

p:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

.inline-error {
  background: #f6e8e8;
  color: var(--error);
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #e5c4c4;
  font-size: 0.95rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.logo:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav .nav-cta {
  color: var(--bg);
  background: var(--accent);
  padding: 0.55rem 1rem;
  text-decoration: none;
  transition: background 0.2s var(--ease);
}

.site-nav .nav-cta:hover {
  background: var(--accent-hover);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem var(--space);
    gap: 1.25rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    border-top: 1px solid var(--line);
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav .nav-cta {
    margin-top: 0.5rem;
  }
}

/* Layout */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section--accent {
  background: var(--accent);
  color: var(--bg);
}

.section--accent p,
.section--accent h2,
.section--accent h3 {
  color: var(--bg);
}

.section--accent p {
  opacity: 0.88;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  max-width: 38rem;
  color: var(--ink-muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--light {
  background: var(--bg);
  color: var(--accent);
}

.btn--light:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Hero — full-bleed, brand-led */

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 18s var(--ease) forwards;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 20, 20, 0.78) 0%,
    rgba(20, 20, 20, 0.35) 45%,
    rgba(20, 20, 20, 0.15) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 6rem) var(--space) clamp(2.5rem, 6vw, 4rem);
  color: #f8f7f4;
  animation: rise 0.9s var(--ease) both;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 1.25rem;
  color: #f8f7f4;
}

.hero__line {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 500;
  max-width: 28ch;
  line-height: 1.3;
  margin: 0 0 1rem;
  color: #f8f7f4;
}

.hero__support {
  max-width: 36rem;
  color: rgba(248, 247, 244, 0.82);
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-hero {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 16ch;
}

.page-hero .lead {
  margin-top: 0.5rem;
}

/* Trust row */

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

.trust__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.trust__item span {
  font-size: 0.92rem;
  color: var(--ink-muted);
}

@media (max-width: 700px) {
  .trust {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Programme list / course cards — interaction containers */

.programme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.programme {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.programme:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  color: inherit;
}

.programme__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}

.programme__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.programme:hover .programme__img img {
  transform: scale(1.04);
}

.programme__body {
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.programme__body h3 {
  color: var(--ink);
  margin: 0;
}

.programme__body p {
  flex: 1;
  font-size: 0.98rem;
}

.programme__meta {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}

/* Split layout */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split--reverse .split__media {
  order: -1;
}

@media (max-width: 800px) {
  .split,
  .split--reverse {
    grid-template-columns: 1fr;
  }

  .split--reverse .split__media {
    order: 0;
  }
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Feature list — not cards */

.feature-list {
  display: grid;
  gap: 2rem;
  max-width: 40rem;
}

.feature-list article {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.feature-list h3 {
  margin-bottom: 0.35rem;
}

/* Testimonials */

.quote-stack {
  display: grid;
  gap: 2.5rem;
}

.quote {
  max-width: 42rem;
}

.quote blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.35;
  color: var(--ink);
  font-weight: 500;
}

.quote cite {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.quote--compact blockquote {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink-muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem 2.5rem;
}

.review-block {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.review-block .stars {
  color: var(--gold);
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.case-study {
  margin-top: 3rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--line);
}

.case-study + .case-study {
  margin-top: 2.5rem;
}

/* Pricing */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.tier {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.tier--focus {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.tier__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.tier__price {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0.75rem 0;
  letter-spacing: -0.03em;
}

.tier__price span {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink-muted);
}

.tier ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.tier li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.tier .btn {
  width: 100%;
}

.pricing-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

/* Blog */

.blog-list {
  display: grid;
  gap: 2.5rem;
}

.blog-item {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 1.75rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.blog-item:hover h2 {
  color: var(--accent);
}

.blog-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.blog-item__meta {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.blog-item h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 0.5rem;
  transition: color 0.2s var(--ease);
}

@media (max-width: 640px) {
  .blog-item {
    grid-template-columns: 1fr;
  }
}

.article-body {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--space) clamp(4rem, 8vw, 6rem);
}

.article-body .cover {
  margin: 0 0 2rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.article-body h2 {
  margin-top: 2rem;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 2rem;
}

/* Forms */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-details p {
  margin-bottom: 0.75rem;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.field {
  margin-bottom: 1.15rem;
}

input,
textarea,
select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.field-error {
  color: var(--error);
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
}

.form-status {
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.form-status--error {
  background: #f6e8e8;
  color: var(--error);
  border: 1px solid #e5c4c4;
}

.form-status--success {
  background: var(--accent-soft);
  color: var(--success);
  border: 1px solid #b7d0c6;
}

/* FAQ */

.faq {
  display: grid;
  gap: 0;
  max-width: 42rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0;
}

.faq summary {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 550;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  margin-top: 0.75rem;
}

/* Modules / curriculum */

.modules {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: mod;
}

.modules li {
  counter-increment: mod;
  padding: 1.25rem 0 1.25rem 3rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.modules li::before {
  content: counter(mod, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 600;
}

.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 2rem;
}

.instructor img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

@media (max-width: 500px) {
  .instructor {
    grid-template-columns: 1fr;
  }
}

/* Legal */

.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--space) clamp(4rem, 8vw, 6rem);
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.legal h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.25rem 0;
}

.legal th,
.legal td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 600;
}

/* 404 */

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem var(--space);
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1;
  color: var(--accent);
  margin: 0;
  letter-spacing: -0.04em;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: rgba(248, 247, 244, 0.75);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #f8f7f4;
  margin: 0 0 0.5rem;
}

.footer-tag {
  max-width: 28rem;
  margin-bottom: 2rem;
  color: rgba(248, 247, 244, 0.65);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(248, 247, 244, 0.45);
  margin: 0 0 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: rgba(248, 247, 244, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: #f8f7f4;
}

.footer-contact {
  font-size: 0.92rem;
  color: rgba(248, 247, 244, 0.7);
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-size: 0.85rem;
  border-top: 1px solid rgba(248, 247, 244, 0.12);
  padding-top: 1.5rem;
  color: rgba(248, 247, 244, 0.45);
}

@media (max-width: 800px) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-cols {
    grid-template-columns: 1fr;
  }
}

/* Cookie banner */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.06);
  animation: rise 0.45s var(--ease) both;
}

.cookie-banner__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem var(--space);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 220px;
  margin: 0;
  font-size: 0.92rem;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* Motion */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Utilities */

.mt-0 {
  margin-top: 0;
}

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

.narrow {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.outcome-list {
  padding-left: 1.15rem;
  color: var(--ink-muted);
}

.outcome-list li {
  margin-bottom: 0.5rem;
}
