/* World of Concrete 2027 promo: announcement bar, pop-up, homepage banner.
   Self-contained: no dependencies, no UI kit. Every selector starts with a .woc- class, so nothing here
   can reach the rest of the site. Fonts: acumin-pro and minerva-modern, the family names the live site's
   Typekit kit (olo8efp) already serves. This file does not load any font.

   Values below were resolved from the Citadel UI kit. Each custom property names the kit token it came from,
   so a later reader can trace it. The responsive ones step at 768px and 1440px, like the kit's tokens.css. */

/* ===== Values ===== */
.woc-bar,
.woc-popup,
.woc-banner {
  /* Colors */
  --woc-red: #ad1f36;                 /* --cit-color-highlight-fill-loud (Renaissance Red 40) */
  --woc-red-dark: #8c0a26;            /* --cit-color-highlight-fill-loud-hover (Renaissance Red 30) */
  --woc-navy: #09253b;                /* --cit-color-brand-fill-deep (Citadel Blue 10) */
  --woc-white: #ffffff;               /* --cit-color-surface-default, --cit-color-text-on-media, --cit-color-highlight-on-loud */
  --woc-ink: #231f20;                 /* --cit-color-text-normal (Gray 10) */
  --woc-surface-lowered: #fafafa;     /* --cit-color-surface-lowered (Gray 95) */
  --woc-black: #000000;               /* --cit-color-gray-05 */
  --woc-scrim: rgba(9, 37, 59, 0.78); /* --cit-color-citadel-blue-10 at 0.78 opacity */

  /* Fonts */
  --woc-font-body: acumin-pro, "Acumin Pro", Arial, Helvetica, sans-serif;           /* --cit-font-family-body */
  --woc-font-display: minerva-modern, "MinervaModern", Georgia, serif;               /* --cit-font-family-display */

  /* Spacing (fixed steps) */
  --woc-space-2xs: 4px;               /* --cit-space-2xs */
  --woc-space-xs: 8px;                /* --cit-space-xs */
  --woc-space-s: 12px;                /* --cit-space-s */
  --woc-space-m: 16px;                /* --cit-space-m */
  --woc-space-ml: 20px;               /* --cit-space-ml */
  --woc-space-l: 24px;                /* --cit-space-l */
  --woc-space-xl: 32px;               /* --cit-space-xl */
  --woc-space-3xl: 48px;              /* --cit-space-3xl */
  --woc-space-4xl: 64px;              /* --cit-space-4xl */

  /* Shape, shadow, motion */
  --woc-radius-l: 8px;                /* --cit-border-radius-l */
  --woc-radius-pill: 100px;           /* --cit-border-radius-pill */
  --woc-shadow-m: 0 0 4px 0 #0000000a, 0 4px 8px 0 #0000000f;   /* --cit-shadow-m */
  --woc-focus-ring: 0 0 4px 0 #ad1f3666;                          /* --cit-focus-ring */
  --woc-duration-fast: 150ms;         /* --cit-duration-fast */
  --woc-ease-standard: cubic-bezier(.2, 0, 0, 1);                 /* --cit-ease-standard */
  --woc-button-height: 52px;          /* --cit-size-button-m */
  --woc-icon-s: 16px;                 /* --cit-icon-size-s */
  --woc-icon-l: 32px;                 /* --cit-icon-size-l */

  /* Responsive values, 375 base */
  --woc-section-x: 16px;              /* --cit-space-section-x (= space-m) */
  --woc-section-y: 40px;              /* --cit-space-section-y (= space-2xl) */
  --woc-parapet-step: 8px;            /* --cit-parapet-step */
  --woc-caps-m-size: 14px;            /* --cit-font-size-caps-m */
  --woc-caps-m-line: 17px;            /* --cit-line-height-caps-m */
  --woc-display-xs-size: 32px;        /* --cit-font-size-display-xs */
  --woc-display-xs-line: 35px;        /* --cit-line-height-display-xs */
  --woc-display-m-size: 32px;         /* --cit-font-size-display-m */
  --woc-display-m-line: 36px;         /* --cit-line-height-display-m */
  --woc-body-xl-size: 20px;           /* --cit-font-size-body-xl */
  --woc-body-xl-line: 26px;           /* --cit-line-height-body-xl */
  --woc-body-l-size: 18px;            /* --cit-font-size-body-l */
  --woc-body-l-line: 26px;            /* --cit-line-height-body-l */
  --woc-body-m-line: 22px;            /* --cit-line-height-body-m */
  --woc-button-size: 16px;           /* --cit-font-size-button-m */
  --woc-button-line: 16px;            /* --cit-line-height-button-m */

  /* Copy reveal: the Smooth style of the kit's web-motion (motion.css) */
  --woc-reveal-dur: 560ms;            /* --dur-slow */
  --woc-reveal-word-dur: 800ms;       /* --dur-hero */
  --woc-reveal-word-stagger: 35ms;    /* --stagger-words */
  --woc-reveal-dist: 24px;            /* --dist-md */
  --woc-reveal-ease: cubic-bezier(0.16, 1, 0.3, 1);               /* --ease-out */
}

@media (min-width: 768px) {
  .woc-bar,
  .woc-popup,
  .woc-banner {
    --woc-section-x: 24px;            /* --cit-space-section-x (= space-l) */
    --woc-parapet-step: 10px;         /* --cit-parapet-step */
    --woc-display-m-size: 46px;       /* --cit-font-size-display-m */
    --woc-display-m-line: 48px;       /* --cit-line-height-display-m */
  }
}

@media (min-width: 1440px) {
  .woc-bar,
  .woc-popup,
  .woc-banner {
    --woc-section-y: 80px;            /* --cit-space-section-y (= space-5xl) */
    --woc-parapet-step: 13px;         /* --cit-parapet-step */
    --woc-caps-m-size: 16px;          /* --cit-font-size-caps-m */
    --woc-caps-m-line: 19px;          /* --cit-line-height-caps-m */
    --woc-display-xs-size: 44px;      /* --cit-font-size-display-xs */
    --woc-display-xs-line: 44px;      /* --cit-line-height-display-xs */
    --woc-display-m-size: 56px;       /* --cit-font-size-display-m */
    --woc-display-m-line: 58px;       /* --cit-line-height-display-m */
    --woc-body-xl-size: 24px;         /* --cit-font-size-body-xl */
    --woc-body-xl-line: 28px;         /* --cit-line-height-body-xl */
    --woc-body-l-size: 20px;          /* --cit-font-size-body-l */
    --woc-body-l-line: 28px;          /* --cit-line-height-body-l */
    --woc-body-m-line: 26px;          /* --cit-line-height-body-m */
  }
}

/* ===== Reset, only inside the pieces' own roots ===== */
.woc-bar, .woc-bar *, .woc-bar *::before, .woc-bar *::after,
.woc-popup, .woc-popup *, .woc-popup *::before, .woc-popup *::after,
.woc-banner, .woc-banner *, .woc-banner *::before, .woc-banner *::after {
  box-sizing: border-box;
}
.woc-bar, .woc-popup, .woc-banner {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ===== Shared: icon, button ===== */
.woc-icon {
  display: inline-block;
  flex: none;
  width: var(--woc-icon-s);
  height: var(--woc-icon-s);
  vertical-align: middle;
}
.woc-icon--l { width: var(--woc-icon-l); height: var(--woc-icon-l); }

/* The red pill button ("Book a Meeting") */
.woc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--woc-space-xs);
  min-height: var(--woc-button-height);
  margin: 0;
  padding: var(--woc-space-m) var(--woc-space-l);
  border: 0;
  border-radius: var(--woc-radius-pill);
  font-family: var(--woc-font-body);
  font-weight: 400;
  font-size: var(--woc-button-size);
  line-height: var(--woc-button-line);
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  color: var(--woc-white);
  background-color: var(--woc-red);
  cursor: pointer;
  transition: background-color var(--woc-duration-fast) var(--woc-ease-standard), color var(--woc-duration-fast) var(--woc-ease-standard), box-shadow var(--woc-duration-fast) var(--woc-ease-standard);
}
.woc-button:hover,
.woc-button:focus-visible {
  color: var(--woc-white);
  text-decoration: none;
  background-color: var(--woc-red-dark);
}
.woc-button:focus-visible {
  outline: 2px solid var(--woc-red);
  outline-offset: 2px;
  box-shadow: var(--woc-focus-ring);
}

/* ===== Announcement bar ===== */
.woc-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--woc-space-xs);
  min-height: 40px;                      /* --cit-space-2xl */
  padding: var(--woc-space-2xs) var(--woc-section-x);
  color: var(--woc-white);
  background-color: var(--woc-red);
}
.woc-bar[hidden] { display: none; }
/* The kit's caps/m size and line height, set in sentence case (no uppercase, no tracking) */
.woc-bar__text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: var(--woc-space-s);
  row-gap: var(--woc-space-2xs);
  margin: 0;
  padding: 0;
  font-family: var(--woc-font-body);
  font-weight: 400;
  font-size: var(--woc-caps-m-size);
  line-height: var(--woc-caps-m-line);
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
}
.woc-bar__link {
  display: inline-flex;
  align-items: center;
  gap: var(--woc-space-xs);
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}
.woc-bar__link:hover,
.woc-bar__link:focus-visible { color: inherit; text-decoration: underline; }
.woc-bar__link:focus-visible,
.woc-bar__close:focus-visible { outline: 2px solid var(--woc-white); outline-offset: 2px; }
.woc-bar__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--woc-space-l);
  height: var(--woc-space-l);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
/* 1px divider between the message and the link (Figma DIVIDER: 14px, white at 70%) */
.woc-bar__divider {
  display: inline-block;
  flex: none;
  width: 1px;
  height: 14px;
  vertical-align: middle;
  background-color: rgba(255, 255, 255, 0.7);
}
/* Below 768 the copy flows as text and wraps where it must ("…Meet Citadel / at Booth S12327 | Book a Meeting");
   the close button stays centered across the rows. */
@media (max-width: 767px) {
  .woc-bar__text { display: block; line-height: var(--woc-body-m-line); }
  .woc-bar__divider { margin-inline: var(--woc-space-xs); }
  .woc-bar__link { vertical-align: top; }
}

/* ===== Pop-up (a native <dialog>) ===== */
.woc-popup {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: var(--woc-space-m);
  border: 0;
  overflow: hidden;
  color: var(--woc-ink);
  background: transparent;
}
.woc-popup[open] { display: grid; place-items: center; }
.woc-popup::backdrop { background-color: var(--woc-scrim); }
.woc-popup__inner {
  display: flex;
  flex-direction: column;
  align-items: center;                   /* the close disc is centered above the card */
  gap: var(--woc-space-ml);
  width: min(716px, 100%);
}
.woc-popup__close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--woc-space-4xl);
  height: var(--woc-space-4xl);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--woc-radius-pill);
  color: var(--woc-red);
  background-color: var(--woc-white);
  cursor: pointer;
  transition: background-color var(--woc-duration-fast) var(--woc-ease-standard), color var(--woc-duration-fast) var(--woc-ease-standard);
}
.woc-popup__close:hover { color: var(--woc-red-dark); background-color: var(--woc-surface-lowered); }
.woc-popup__close:focus-visible { outline: 2px solid var(--woc-white); outline-offset: 2px; }
.woc-popup__card {
  width: 100%;
  background-color: var(--woc-white);
  border-radius: var(--woc-radius-l);
  box-shadow: var(--woc-shadow-m);
  /* A card taller than the window scrolls inside itself; the close disc stays put above it. */
  max-height: calc(100vh - var(--woc-space-4xl) - var(--woc-space-ml) - 2 * var(--woc-space-m));
  max-height: calc(100dvh - var(--woc-space-4xl) - var(--woc-space-ml) - 2 * var(--woc-space-m));
  overflow-x: hidden;
  overflow-y: auto;
}
.woc-popup__card:focus { outline: none; }
.woc-popup__strip {
  display: flex;
  gap: var(--woc-space-2xs);
  background-color: var(--woc-white);
}
.woc-popup__tile { position: relative; flex: 1 1 0; height: 112px; overflow: hidden; }
.woc-popup__tile picture { display: block; }
/* The photos are cropped to the tile already (see img/), so cover is all they need */
.woc-popup__tile img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.woc-popup__block {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--woc-space-ml);
  padding: var(--woc-space-l);
  color: var(--woc-ink);
  background-color: var(--woc-white);
}
/* The castle edge. It overlaps the block by a pixel: sitting exactly on its edge leaves a hairline of photo showing.
   Merlon width is five parapet steps (height to width 1:5). 5 merlons below 768, 8 from 768, 6 from 1440. */
.woc-popup__parapet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  z-index: 1;
  display: flex;
  justify-content: space-between;
  height: var(--woc-parapet-step);
  pointer-events: none;
}
.woc-popup__merlon { flex: none; width: calc(var(--woc-parapet-step) * 5); background-color: var(--woc-white); }
.woc-popup__merlon:nth-child(n + 6) { display: none; }
.woc-popup__logo { display: block; width: 148px; height: auto; flex: none; max-width: 100%; }
.woc-popup__row { display: flex; flex-direction: column; gap: var(--woc-space-ml); width: 100%; }
.woc-popup__text { display: flex; flex-direction: column; gap: var(--woc-space-s); }
.woc-popup__headline,
.woc-popup__date { margin: 0; padding: 0; text-transform: none; letter-spacing: normal; color: var(--woc-ink); }
.woc-popup__headline {
  font-family: var(--woc-font-display);
  font-weight: 400;
  font-size: var(--woc-display-xs-size);
  line-height: var(--woc-display-xs-line);
  text-wrap: balance;
}
.woc-popup__date {
  font-family: var(--woc-font-body);
  font-weight: 400;
  font-size: var(--woc-body-xl-size);
  line-height: var(--woc-body-xl-line);
}
.woc-popup__cta { display: flex; flex-direction: column; align-items: stretch; gap: var(--woc-space-s); }
/* "I'm Not Attending": a text button, always underlined, centered under the red button */
.woc-popup__dismiss {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: var(--woc-space-xs);
  margin: 0;
  padding: var(--woc-space-m) 0;
  border: 0;
  border-radius: 0;
  font-family: var(--woc-font-body);
  font-weight: 400;
  font-size: var(--woc-button-size);
  line-height: var(--woc-button-line);
  letter-spacing: normal;
  text-transform: none;
  text-decoration: underline;
  white-space: nowrap;
  color: var(--woc-ink);
  background: none;
  cursor: pointer;
}
.woc-popup__dismiss:focus-visible {
  outline: 2px solid var(--woc-red);
  outline-offset: 2px;
  box-shadow: var(--woc-focus-ring);
}

@media (min-width: 768px) {
  .woc-popup__tile { height: 200px; }
  .woc-popup__block { padding: var(--woc-space-xl); gap: var(--woc-space-ml); }
  .woc-popup__merlon:nth-child(n + 6) { display: block; }
  .woc-popup__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--woc-space-xl); }
  /* The link's invisible box hangs 12px below the block's padding line, so the visible text sits level with the date. */
  .woc-popup__cta { margin-bottom: calc(var(--woc-space-s) * -1); }
}
@media (min-width: 1440px) {
  .woc-popup__merlon:nth-child(n + 7) { display: none; }
}

/* ===== Homepage banner ===== */
.woc-banner {
  display: block;
  padding: var(--woc-section-y) 0;
  background-color: var(--woc-white);
}
.woc-banner[hidden] { display: none; }
/* The live citadelfloors.com content column, measured on the Industries Served heading: 5% in from each side
   below 540px, 9% from 540px, and the margin stops growing at 182px (about 2020px wide). Percent padding is
   relative to the section's width, so the banner lines up with the sections around it at every width. */
.woc-banner__col { width: 100%; padding-inline: 5%; }
@media (min-width: 540px) { .woc-banner__col { padding-inline: min(9%, 182px); } }

/* Below 1200: the photo on top at 16:9, the copy panel under it. */
.woc-banner__card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--woc-radius-l);
  overflow: hidden;
  background-color: var(--woc-navy);
}
.woc-banner__photo { position: relative; aspect-ratio: 16 / 9; }
.woc-banner__photo picture { display: block; }
.woc-banner__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* Black at 60% fading out toward the lower right, so the white logo holds on any crop */
.woc-banner__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(142.74deg, rgba(0, 0, 0, 0.6) 12.52%, transparent 42.67%);   /* --cit-color-gray-05 at 60% */
  pointer-events: none;
}
.woc-banner__logo { position: absolute; top: var(--woc-space-m); left: var(--woc-space-m); z-index: 2; display: block; width: 110px; height: auto; }
.woc-banner__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--woc-space-s);
  padding: var(--woc-space-l) var(--woc-space-m);
  color: var(--woc-white);
  background-color: var(--woc-navy);
}
.woc-banner__headline,
.woc-banner__body { margin: 0; padding: 0; text-transform: none; letter-spacing: normal; color: var(--woc-white); }
.woc-banner__headline {
  max-width: 600px;
  font-family: var(--woc-font-display);
  font-weight: 400;
  font-size: var(--woc-display-m-size);
  line-height: var(--woc-display-m-line);
  text-wrap: balance;
}
.woc-banner__body {
  font-family: var(--woc-font-body);
  font-weight: 400;
  font-size: var(--woc-body-l-size);
  line-height: var(--woc-body-l-line);
}
.woc-banner__body strong { font-weight: 700; }
/* RSTO-263 copy update (Figma 6:981, 145:405): subtitle in body/xl, and a "Not Attending?" link beside the button
   (stacked under it below 768). */
.woc-banner__subtitle {
  margin: 0;
  padding: 0;
  font-family: var(--woc-font-body);
  font-weight: 400;
  font-size: var(--woc-body-xl-size);
  line-height: var(--woc-body-xl-line);
  text-transform: none;
  letter-spacing: normal;
  color: var(--woc-white);
}
.woc-banner__cta { display: flex; flex-direction: column; align-items: flex-start; gap: var(--woc-space-l); margin-top: var(--woc-space-s); }
.woc-banner__secondary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  font-family: var(--woc-font-body);
  font-weight: 400;
  font-size: var(--woc-button-size);
  line-height: var(--woc-body-m-line);
  color: var(--woc-white);
}
.woc-banner__secondary-link {
  display: inline-flex;
  align-items: center;
  gap: var(--woc-space-xs);
  padding-block: var(--woc-space-xs);
  line-height: 1;
  color: inherit;
  text-decoration: none;
}
.woc-banner__secondary-link .woc-icon { width: 20px; height: 20px; }   /* Figma icon-end is 20px; no matching --cit-icon-size token */
.woc-banner__secondary-link:hover { color: inherit; text-decoration: underline; }
.woc-banner__secondary-link:focus-visible { outline: 2px solid var(--woc-white); outline-offset: 2px; }
@media (min-width: 768px) {
  /* Figma gap is 10px; --cit-space-s (12px) is the nearest token */
  .woc-banner__cta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--woc-space-s); }
  /* Figma sets both labels to nowrap: when the copy column is too narrow (1200-1439), the whole group moves under the button instead of breaking its words */
  .woc-banner__secondary { flex-direction: row; align-items: center; gap: var(--woc-space-xs); white-space: nowrap; }
}
.woc-banner .woc-button:focus-visible { outline-color: var(--woc-white); }
@media (min-width: 768px) {
  .woc-banner__logo { top: 30px; left: 30px; width: 160px; }
  .woc-banner__copy { padding: var(--woc-space-3xl) var(--woc-space-xl); }
}
/* Side by side from 1200: below that the copy column is too narrow for the headline at the live column width. */
@media (min-width: 1200px) {
  .woc-banner__card { grid-template-columns: 1fr 1fr; min-height: 400px; }
  .woc-banner__photo { aspect-ratio: auto; }
}
@media (min-width: 1440px) {
  .woc-banner__copy { padding: var(--woc-space-3xl); }
}

/* ===== Copy reveal =====
   The script adds .woc-is-armed to a piece when motion is allowed, then adds .woc-in to each revealing element
   to play it. Without the script, or with reduced motion, nothing is hidden. */
.woc-is-armed .woc-reveal--up {
  opacity: 0;
  transform: translate3d(0, var(--woc-reveal-dist), 0);
  transition: opacity var(--woc-reveal-dur) var(--woc-reveal-ease), transform var(--woc-reveal-dur) var(--woc-reveal-ease);
  transition-delay: var(--woc-delay, 0ms);
}
.woc-is-armed .woc-reveal--up.woc-in { opacity: 1; transform: none; }
.woc-m-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.woc-is-armed .woc-reveal--words .woc-m-w > span {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  transition: transform var(--woc-reveal-word-dur) var(--woc-reveal-ease);
  transition-delay: calc(var(--woc-wi, 0) * var(--woc-reveal-word-stagger));
}
.woc-is-armed .woc-reveal--words.woc-in .woc-m-w > span { transform: none; }
.woc-reveal--words .woc-m-w > span { display: inline-block; }
.woc-reset, .woc-reset * { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  .woc-is-armed .woc-reveal--up { opacity: 1; transform: none; transition: none; }
  .woc-is-armed .woc-reveal--words .woc-m-w > span { transform: none; transition: none; }
  .woc-button, .woc-popup__close { transition: none; }
}
