/* ═══════════════════════════════════════════════════════════════
   SUPPLY UNCHAINED — Coming Soon
   styles.css
   ═══════════════════════════════════════════════════════════════

   COLOUR TOKENS
   Edit these variables to adjust the entire colour system at once.
   ─────────────────────────────────────────────────────────────── */

:root {
  --color-bg:          #0b1d36;   /* Deep navy — dominant background     */
  --color-bg-mid:      #1B2A47;   /* Mid navy — secondary surfaces        */
  --color-steel:       #8A9BB0;   /* Steel grey — secondary text          */
  --color-white:       #F0F2F5;   /* Off-white — primary text             */
  --color-pure-white:  #FFFFFF;   /* Pure white — high emphasis           */
  --color-rule:        rgba(138, 155, 176, 0.22); /* Divider lines        */
   --color-tag:        #12151c;    /* Divider lines        */

  /* ── TYPOGRAPHY ─────────────────────────────────────────────── */
  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* ── SPACING ────────────────────────────────────────────────── */
  --page-padding-x: clamp(24px, 6vw, 80px);
  --page-padding-y: clamp(28px, 5vw, 56px);
}


/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════ */

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  background-color: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;

  /* Prevent scroll on desktop — full viewport page */
  overflow-y: hidden;
}

/* Allow scroll on mobile where content may overflow */
@media (max-width: 640px) {
  body { overflow-y: auto; }
}

a {
  color: inherit;
  text-decoration: none;
}

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


/* ═══════════════════════════════════════════════════════════════
   BACKGROUND IMAGE
   ─────────────────────────────────────────────────────────────
   To change the background:
   1. Add your image to /public/mountain.jpg
   2. The <img> in index.html references public/mountain.jpg
   ═══════════════════════════════════════════════════════════════ */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;

  /* Desaturate and darken to match profile photography treatment */
  filter: saturate(1.8) brightness(0.70);
}

.bg__overlay {
  position: absolute;
  inset: 0;

  /* Gradient — darkens bottom so footer text is always legible */
  background: linear-gradient(
    to bottom,
    rgba(13, 27, 46, 0.45) 0%,
    rgba(13, 27, 46, 0.25) 35%,
    rgba(13, 27, 46, 0.70) 75%,
    rgba(8, 17, 30, 0.96) 100%
  );
}


/* ═══════════════════════════════════════════════════════════════
   GRAIN TEXTURE OVERLAY
   References the texture treatment on profile page headings
   ═══════════════════════════════════════════════════════════════ */

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}


/* ═══════════════════════════════════════════════════════════════
   TRAIL DEVICE
   Vertical right-edge element — references methodology page trail
   ═══════════════════════════════════════════════════════════════ */

.trail {
  position: fixed;
  right: var(--page-padding-x);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.trail__label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--color-steel);
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-bottom: 16px;
  opacity: 0.5;
}

.trail__line {
  width: 1px;
  height: 100px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(138, 155, 176, 0.45),
    transparent
  );
}

.trail__diamond {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(138, 155, 176, 0.6);
  transform: rotate(45deg);
  margin: 10px 0;
}

/* Hide trail on mobile — not enough room */
@media (max-width: 640px) {
  .trail { display: none; }
}


/* ═══════════════════════════════════════════════════════════════
   PAGE LAYOUT
   Three-row grid: header / main / footer
   ═══════════════════════════════════════════════════════════════ */

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--page-padding-y) var(--page-padding-x);

  /* Reserve space for the trail device on the right */
  padding-right: calc(var(--page-padding-x) + 40px);
}


/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-rule);
}

/* ── Logo ── */
.header__logo {
  display: flex;
  align-items: center;
}

.header__logo-img {
  /*
    Adjust this height to match the visual size of your logo.
    Default: 32px height, width scales automatically.
  */
  height: 32px;
  width: auto;
}

/* Fallback text shown if logo file is not yet added */
.header__logo-fallback {
  display: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: 0.22em;
  color: var(--color-white);
  text-transform: uppercase;
}

.header__logo-fallback span {
  color: var(--color-steel);
  font-weight: 400;
}

/* ── Tag ── */
.header__tag {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.30em;
  color: var(--color-tag);
  text-transform: uppercase;
  border: 1px solid var(--color-white);
  padding: 6px 14px;
  border-radius: 2px;

    /* ── Background image ── */
  background-image: url('public/header-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

}


/* ═══════════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════════ */

.main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 8vh, 72px) 0;
  max-width: 800px;
}

/* ── Eyebrow ── */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: var(--color-steel);
  text-transform: uppercase;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 13px;

  /* Animate in */
  animation: fadeUp 0.7s ease 0.1s both;
}


/* ── Headline ── */
.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 100px);
  line-height: 0.93;
  letter-spacing: -0.01em;
  color: var(--color-pure-white);
  text-transform: uppercase;
  margin-bottom: 8px;

  animation: fadeUp 0.7s ease 0.22s both;
}

.headline--muted {
  color: var(--color-steel);
  font-weight: 500;
}

/* ── Rule ── */
.rule {
  margin: 12px 0;
  opacity: 0.85;

  animation: fadeUp 0.5s ease 0.38s both;
}

/* ── Body copy ── */
.body {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-steel);
  max-width: 500px;
  margin-bottom: 44px;

  animation: fadeUp 0.6s ease 0.48s both;
}

.body strong {
  color: var(--color-white);
  font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════════
   CONTACT ROW
   ═══════════════════════════════════════════════════════════════ */

.contact {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;

  animation: fadeUp 0.6s ease 0.62s both;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--color-white);
  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}

.contact__item:hover {
  color: var(--color-pure-white);
  opacity: 1;
}

.contact__item svg {
  opacity: 0.45;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.contact__item:hover svg {
  opacity: 0.7;
}

.contact__divider {
  width: 1px;
  height: 16px;
  background: var(--color-rule);
  flex-shrink: 0;
}

/* Stack contact items on mobile */
@media (max-width: 640px) {
  .contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .contact__divider { display: none; }
}


/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid var(--color-rule);
  flex-wrap: wrap;
  gap: 12px;
}

.footer__services {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--color-steel);
  opacity: 0.55;
  text-transform: uppercase;
}

.footer__bbbee {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--color-steel);
  opacity: 0.5;
  text-transform: uppercase;
  border: 1px solid var(--color-rule);
  padding: 5px 12px;
  border-radius: 2px;
}

@media (max-width: 640px) {
  .footer { flex-direction: column; align-items: flex-start; }
}


/* ═══════════════════════════════════════════════════════════════
   ENTRANCE ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

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

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