/* ==========================================================================
   Fix It Better — landing page
   Hand-written CSS recreating the supplied design (no framework). Body
   copy uses the system font stack; headings use Archivo, loaded via
   Google Fonts in index.html's <head>.
   ========================================================================== */

:root {
  --color-bg-dark: #0a0b10;
  --color-bg-dark-alt: #101217;
  --color-gold: #c9a668;
  --color-gold-light: #ddc08c;
  --color-blue: #1f6fe0;
  --color-blue-light: #4a8ef0;
  --color-white: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.72);
  --color-text-faint: rgba(255, 255, 255, 0.5);
  --color-section-light: #f7f6f5;
  --color-section-light-alt: #eeedea;
  --color-text-dark: #15171b;
  --color-text-dark-muted: #5b5e65;
  --color-border-light: #e2e0db;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-family-heading: 'Archivo', -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-family-badge: 'Rajdhani', -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-max: 1180px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background: var(--color-section-light);
  color: var(--color-text-dark);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --- Shared bits --- */

.text-gold { color: var(--color-gold); }
.text-white { color: var(--color-white); }
.text-dark { color: var(--color-text-dark); }

/* The angled "ribbon" shape is a real skewed box (not clip-path) so the
   border draws as one continuous outline, including the two slanted side
   edges — clip-path only trims the box's content/background, it doesn't
   stroke a border along the new cut edges, which is why those diagonal
   connecting lines were missing before. The text is counter-skewed back
   upright inside it. */
.badge {
  display: inline-block;
  background: transparent;
  transform: skewX(-20deg);
}
.badge-text {
  display: block;
  padding: 0.5rem 1.5rem;
  font-family: var(--font-family-badge);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: skewX(12deg);
}
.badge-gold {
  border: 1px solid var(--color-gold);
  color: var(--color-gold-light);
}
.badge-blue {
  border: 1px solid var(--color-blue-light);
  color: var(--color-blue-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 2px;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-gold {
  background: var(--color-gold);
  color: #241a0a;
}
.btn-blue {
  background: var(--color-blue);
  color: var(--color-white);
}

/* --- Header --- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: transparent;
  padding: 1.25rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
}
.logo-img {
  display: block;
  height: 105.6px; /* 48px * 2.2 */
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.main-nav a {
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.15s ease;
}
.main-nav a:hover {
  color: var(--color-gold-light);
}
.nav-divider {
  color: var(--color-text-faint);
}

/* --- Hero / two-business band --- */

.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-dark);
  /* Extra top padding clears the header, which is absolutely positioned
     over this section (see .site-header) instead of sitting in normal
     flow above it, so the two share one unbroken background. */
  padding: 14rem 0 3.5rem;
  /* Dark overlay on top of the supplied texture (img/main-bg.png is a
     light gray diagonal pattern) so it still reads as part of the dark
     design instead of washing it out. */
  background-image: url('../img/main-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-heading {
  margin: 0;
  font-family: var(--font-family-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.hero-heading span {
  display: block;
}

.hero-subhead {
  margin: 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.hero-footnote {
  text-align: center;
  margin: 2.5rem 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-text-faint);
}

/* --- Business cards --- */

.business-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .business-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.business-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  padding: 2.5rem 2.25rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.business-card-service {
  background: linear-gradient(160deg, rgba(201, 166, 104, 0.14), var(--color-bg-dark-alt) 60%);
}
.business-card-academy {
  background: linear-gradient(160deg, rgba(31, 111, 224, 0.16), var(--color-bg-dark-alt) 60%);
}

.business-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-white);
}

.business-divider {
  width: 48px;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin: 0.25rem 0;
}

.business-logo-img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin-bottom: 0.25rem;
}

.business-desc {
  margin: 0;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.business-caption {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--color-text-faint);
}

/* --- Standard / training intro section --- */

.standard {
  position: relative;
  overflow: hidden;
  background-color: var(--color-section-light);
  background-image: url('../img/light-background.png');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  padding: 5rem 0 4rem;
}

.standard-intro {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.standard-heading {
  margin: 0;
  font-family: var(--font-family-heading);
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 800;
  line-height: 1.2;
}
.standard-heading span {
  display: block;
}

.standard-subhead {
  margin: 0;
  max-width: 600px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-dark-muted);
}

/* --- Feature cards --- */

.feature-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 760px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 6px;
  padding: 2rem 1.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-gold);
}

.feature-title {
  margin: 0;
  font-family: var(--font-family-badge); /* Rajdhani */
  font-size: 20px;
  font-weight: 700; /* Rajdhani's boldest loaded weight — no 800 exists */
  letter-spacing: 0.01em;
}

.feature-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-dark-muted);
}

/* --- CTA banner (diagonal gold/light split) --- */

.cta-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 4px;
  overflow: hidden;
}
@media (min-width: 760px) {
  .cta-banner {
    grid-template-columns: minmax(280px, 0.8fr) 1.2fr;
  }
}

.cta-banner-gold,
.cta-banner-light {
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
}
.cta-banner-light {
  padding-left: 3rem; /* 50% more than the base 2rem */
}

.cta-banner-gold {
  background: var(--color-gold);
  color: var(--color-white);
}
.cta-banner-gold p {
  margin: 0;
  font-family: var(--font-family-badge); /* Rajdhani */
  font-size: 20px;
  font-weight: 700; /* Rajdhani's boldest loaded weight — no 800 exists */
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.cta-banner-light {
  background: var(--color-section-light-alt);
}
.cta-banner-light p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-dark-muted);
}
.cta-banner-light strong {
  color: var(--color-text-dark);
}

@media (min-width: 760px) {
  .cta-banner-gold {
    clip-path: polygon(0 0, 100% 0, calc(100% - 40px) 100%, 0 100%);
    padding-right: 4rem;
    margin-right: -40px;
  }
}

/* --- Footer --- */

.site-footer {
  background: var(--color-bg-dark);
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-copy {
  margin: 0;
  font-size: 12px;
  color: var(--color-text-faint);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 12px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-link:hover {
  color: var(--color-white);
}
.footer-globe {
  width: 14px;
  height: 14px;
}

/* --- Scroll-reveal (progressive enhancement; see js/main.js) --- */

.scroll-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
