/* =============================================
   CUSTOM PROPERTIES
   ============================================= */
:root {
  /* Colours */
  --color-text:           #232323;
  --color-text-muted:     #525252;
  --color-bg:             #ffffff;
  --color-bg-alt:         #f7f7f7;
  --color-primary:        #d70081;
  --color-primary-hover:  #80004d;
  --color-primary-active: #ff0b9d;
  --color-accent:         #757b62;
  --color-accent-hover:   #474b3c;

  /* Hero colours */
  --color-hero-title:    #f7f7f7;
  --color-hero-subtitle: #d70081;
  --color-hero-text:     #c8c8c8;

  /* Typography */
  --font-family: 'Inter Tight', sans-serif;

  /* Spacing */
  --space-section: 8rem;
  --space-md:      2rem;
  --space-sm:      1rem;

  /* Shapes */
  --radius-card: 2rem;
  --radius-btn:  4px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height: auto;
  min-height: 100vh;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  line-height: 1.3;
  word-break: break-word;
  word-wrap: break-word;
}

p, span, a {
  font-weight: 400;
  line-height: 1;
  word-break: break-word;
  word-wrap: break-word;
}

b, strong {
  font-weight: bold;
}

a {
  font-style: normal;
  text-decoration: none;
  cursor: pointer;
  color: var(--color-primary);
  transition: color 0.6s;
}

a:hover {
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  border-radius: var(--radius-card);
}

section, footer {
  position: relative;
  word-wrap: break-word;
}

/* =============================================
   TYPOGRAPHY — Display scale
   ============================================= */
.display-1 {
  font-family: var(--font-family);
  font-size: 3rem;
  line-height: 1;
}

.display-2 {
  font-family: var(--font-family);
  font-size: 2.4rem;
  line-height: 1;
}

.display-4 {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.5;
}

.display-5 {
  font-family: var(--font-family);
  font-size: 1.4rem;
  line-height: 1.5;
}

.display-7 {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.3;
}

/* Fluid typography — tablet */
@media (max-width: 992px) {
  .display-1 { font-size: 2.4rem; }
}

/* Fluid typography — mobile */
@media (max-width: 768px) {
  .display-1 {
    font-size: calc(1.7rem + (3 - 1.7) * ((100vw - 20rem) / (48 - 20)));
    line-height: calc(1.1 * (1.7rem + (3 - 1.7) * ((100vw - 20rem) / (48 - 20))));
  }
  .display-2 {
    font-size: calc(1.49rem + (2.4 - 1.49) * ((100vw - 20rem) / (48 - 20)));
    line-height: calc(1.3 * (1.49rem + (2.4 - 1.49) * ((100vw - 20rem) / (48 - 20))));
  }
  .display-5 {
    font-size: calc(1.14rem + (1.4 - 1.14) * ((100vw - 20rem) / (48 - 20)));
    line-height: calc(1.4 * (1.14rem + (1.4 - 1.14) * ((100vw - 20rem) / (48 - 20))));
  }
  .display-7 {
    font-size: calc(1rem + (1 - 1) * ((100vw - 20rem) / (48 - 20)));
    line-height: calc(1.4 * (1rem + (1 - 1) * ((100vw - 20rem) / (48 - 20))));
  }
}

/* Fluid typography — between tablet and desktop */
@media (min-width: 992px) and (max-width: 1400px) {
  .display-1 {
    font-size: calc(1.7rem + (3 - 1.7) * ((100vw - 62rem) / (87 - 62)));
    line-height: calc(1.1 * (1.7rem + (3 - 1.7) * ((100vw - 62rem) / (87 - 62))));
  }
  .display-2 {
    font-size: calc(1.49rem + (2.4 - 1.49) * ((100vw - 62rem) / (87 - 62)));
    line-height: calc(1.3 * (1.49rem + (2.4 - 1.49) * ((100vw - 62rem) / (87 - 62))));
  }
  .display-5 {
    font-size: calc(1.14rem + (1.4 - 1.14) * ((100vw - 62rem) / (87 - 62)));
    line-height: calc(1.4 * (1.14rem + (1.4 - 1.14) * ((100vw - 62rem) / (87 - 62))));
  }
  .display-7 {
    font-size: calc(1rem + (1 - 1) * ((100vw - 62rem) / (87 - 62)));
    line-height: calc(1.4 * (1rem + (1 - 1) * ((100vw - 62rem) / (87 - 62))));
  }
}

/* Gradient text — used in Automation heading */
.gradient-text {
  background: linear-gradient(110deg, #f28c28 0%, #e85c3a 50%, #e8175d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================
   LAYOUT — Container
   ============================================= */
.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  position: relative;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* =============================================
   LAYOUT — Section grid (replaces Bootstrap)
   ============================================= */
.section-grid {
  display: grid;
  grid-template-columns: 3fr 5fr;
  gap: var(--space-md);
  align-items: center;
}

/* Reverse: image on right, text on left */
.section-grid--reverse {
  grid-template-columns: 5fr 3fr;
}

.section-grid--reverse .section-image {
  order: 2;
}

.section-grid--reverse .section-content {
  order: 1;
}

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

  .section-grid--reverse .section-image,
  .section-grid--reverse .section-content {
    order: unset;
  }

  .section-image {
    padding: 1rem;
    margin-bottom: 1rem;
  }
}

@media (min-width: 992px) {
  .section-content {
    padding: 0 2rem;
  }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  font-family: var(--font-family);
  font-weight: 600;
  font-style: normal;
  border-width: 2px;
  border-style: solid;
  border-radius: var(--radius-btn);
  padding: 0.6rem 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--space-sm);
}

.btn-group--end {
  justify-content: flex-end;
}

/* White outline — hero navigation */
.btn-white-outline,
.btn-white-outline:link,
.btn-white-outline:visited,
.btn-white-outline:active {
  background-color: transparent;
  border-color: #fafafa;
  color: #fafafa;
}

.btn-white-outline:hover,
.btn-white-outline:focus {
  color: #cfcfcf;
  border-color: #cfcfcf;
}

/* Success outline — hero navigation */
.btn-success-outline,
.btn-success-outline:link,
.btn-success-outline:visited,
.btn-success-outline:active {
  background-color: transparent;
  border-color: #c5c5c5;
  color: #c5c5c5;
}

.btn-success-outline:hover,
.btn-success-outline:focus {
  color: #9a9a9a;
  border-color: #9a9a9a;
}

/* Primary outline — consultancy & training buttons */
.btn-primary-outline,
.btn-primary-outline:link,
.btn-primary-outline:visited,
.btn-primary-outline:active {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-primary-outline:hover,
.btn-primary-outline:focus {
  color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

/* Danger outline — automation & coaching buttons */
.btn-danger-outline,
.btn-danger-outline:link,
.btn-danger-outline:visited,
.btn-danger-outline:active {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-danger-outline:hover,
.btn-danger-outline:focus {
  color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

/* Small button text — hero nav */
.buttonmain {
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Focus indicator */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  padding-top: 3rem;
  padding-bottom: 3rem;
  overflow: hidden;
}

/* Fallback background image — visible when video hasn't loaded */
.hero__fallback {
  position: absolute;
  inset: 0;
  background-image: url("../images/background1.webp");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* YouTube video background */
.hero__video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero__video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;   /* 16/9 ratio relative to viewport height */
  height: 56.25vw;   /* 9/16 ratio relative to viewport width */
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border-radius: 0;
}

/* Dark overlay on top of video */
.hero__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--color-text);
  opacity: 0.9;
  z-index: 2;
  pointer-events: none;
}

/* Hero content above overlay — no max-width, flush to left */
.hero .container {
  position: relative;
  z-index: 3;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.hero__content {
  padding: 0 1rem 0 3rem;
}

.hero__title {
  color: var(--color-hero-title);
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  color: var(--color-hero-subtitle);
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.hero__text {
  color: var(--color-hero-text);
  margin-bottom: var(--space-md);
  line-height: 1.7;
  max-width: 520px;
}

@media (max-width: 767px) {
  .hero {
    align-items: center;
  }

  .hero__content {
    padding: 1rem;
  }
}

/* =============================================
   CONTENT SECTIONS
   ============================================= */
.content-section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
  background-color: var(--color-bg);
}

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

.section-title {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.section-body {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.7;
  font-style: normal;
}

/* Training and Coaching: right-aligned text to complement the layout */
#training .section-title,
#training .section-body,
#coaching .section-title,
#coaching .section-body {
  text-align: right;
}


/* =============================================
   FOOTER
   ============================================= */
footer {
  padding-top: 2rem;
  padding-bottom: 2rem;
  background-color: var(--color-bg-alt);
}

.footermini {
  font-family: var(--font-family);
  font-size: 0.8rem;
  line-height: 1.5;
  color: #c8c8c8;
  text-align: right;
  margin: 0;
}

@media (min-width: 992px) {
  .footermini {
    padding-right: 2rem;
  }
}
