/**
 * Citi HK — Base design system
 * Use as the foundation for page styles.
 *
 * Colors, typography, and buttons from the Citi HK style sheet.
 * Drop licensed font files into /fonts and update @font-face paths.
 */

/* -------------------------------------------------------------------------- */
/* Fonts                                                                      */
/* -------------------------------------------------------------------------- */

@font-face {
  font-family: "Citi Serif Condensed";
  src: url("../fonts/serrifcondensed-thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Citi Serif Display";
  src: url("../fonts/citi-serif-display-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Citi Serif Display";
  src: url("../fonts/citi-serif-display-regular-italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Citi Sans Display";
  src: url("../fonts/citi-sans-display-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Citi Sans Display";
  src: url("../fonts/citi-sans-display-regular-italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Citi Sans Display";
  src: url("../fonts/citi-sans-display-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Citi Sans Display";
  src: url("../fonts/citi-sans-display-bold-italic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Citi Sans Text";
  src: url("../fonts/citi-sans-text-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Citi Sans Text";
  src: url("../fonts/citi-sans-text-regular-italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Citi Sans Text";
  src: url("../fonts/citi-sans-text-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Citi Sans Text";
  src: url("../fonts/citi-sans-text-bold-italic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Citi Sans Condensed";
  src: url("../fonts/citi-sans-condensed-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Citi Sans Condensed";
  src: url("../fonts/citi-sans-condensed-regular-italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* -------------------------------------------------------------------------- */
/* Design tokens                                                              */
/* -------------------------------------------------------------------------- */

:root {
  /* Color — neutrals */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-off-white: #f9f9f9;
  --color-light-gray-01: #f0f5f7;
  --color-light-gray-02: #e3e8eb;
  --color-light-gray-03: #d8d8d8;
  --color-light-gray-04: #efefef;
  --color-dark-gray-01: #2f3437;
  --color-dark-gray-02: #474d52;
  --color-dark-gray-03: #686d71;
  --color-dark-gray-04: #e9e9e9;
  --color-citi-blue-bg: #e7edfc;
  --color-citi-blue-bg-light: #f1f8fe;

  /* Color — brand */
  --color-citigold: #a18445;
  --color-cpc: #a18445;
  --color-citigold-bg: #fef5df;
  --color-cpc-bg: #2f3437;
  --color-citi-blue: #255be3;
  --color-gray-bg: #e9e9e9;
  --color-gray-bg-light: #f3f3f3;
  
  /* chart */
  --color-chart-light-blue: #8fcbea;
  --color-chart-dark-blue: #1b5c9e;
  --color-chart-purple: #8e319c;
  --color-positive: #2a6b3c;
  --color-negative: #a70d0d;

  /* Semantic aliases */
  --color-text: var(--color-black);
  --color-text-muted: var(--color-dark-gray-03);
  --color-bg: var(--color-white);
  --color-bg-subtle: var(--color-light-gray-01);
  --color-border: var(--color-light-gray-02);
  --color-focus: var(--color-citi-blue);

  /* Font families */
  --font-serif-condensed: "Citi Serif Condensed", "Georgia", "Times New Roman", serif;
  --font-sans-display: "Citi Sans Display", "Helvetica Neue", "Arial", sans-serif;
  --font-sans-text: "Citi Sans Text", "Helvetica Neue", "Arial", sans-serif;
  --font-sans-condensed: "Citi Sans Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Buttons */
  --btn-padding-y: 14px;
  --btn-padding-x: 24px;
  --btn-radius: 0;
  --btn-border-width: 1px;
  --transition-fast: 0.2s ease;
}

/* -------------------------------------------------------------------------- */
/* Reset / base                                                               */
/* -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans-text);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width:100%;
  max-width:1440px;
  margin:0 auto;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

/* -------------------------------------------------------------------------- */
/* Typography                                                                 */
/* -------------------------------------------------------------------------- */

/* H1 — Hero banner title */
.h1,
.text-h1 {
  font-family: var(--font-serif-condensed);
  font-weight: 100;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -1px;
  text-transform: uppercase;
}

/* H2 — Section title */
.h2,
.text-h2 {
  font-family: var(--font-serif-condensed);
  font-weight: 100;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -1px;
  text-transform: uppercase;
}

/* H3 — Cards title 1 */
.h3,
.text-h3 {
  font-family: var(--font-sans-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* H4 — Cards title 2 */
.h4,
.text-h4 {
  font-family: var(--font-sans-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* H5 — Cards title 3 */
.h5,
.text-h5 {
  font-family: var(--font-sans-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Body text 1 — Hero banner description */
.text-body-1 {
  font-family: var(--font-sans-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* Body text 2 — Section description */
.text-body-2 {
  font-family: var(--font-sans-display);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}

/* Body text 3 — General body text */
.text-body-3 {
  font-family: var(--font-sans-text);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}

/* Body text 4 — General body text */
.text-body-4 {
  font-family: var(--font-sans-text);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}

/* Chip 1 — All chips */
.text-chip-1 {
  font-family: var(--font-sans-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Chip 2 — Value information */
.text-chip-2 {
  font-family: var(--font-sans-display);
  font-weight: 700;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Button label — Primary / Secondary */
.text-btn-1 {
  font-family: var(--font-sans-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Button label — Hyperlink */
.text-btn-2 {
  font-family: var(--font-sans-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Disclaimer — T&Cs, quick links */
.text-disclaimer {
  font-family: var(--font-sans-condensed);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}

/* Semantic element defaults (optional — use classes for precise control) */
h1 {
  font-family: var(--font-serif-condensed);
  font-weight: 100;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -1px;
  text-transform: uppercase;
}

h2 {
  font-family: var(--font-serif-condensed);
  font-weight: 100;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -1px;
  text-transform: uppercase;
}

h3 {
  font-family: var(--font-sans-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

h4 {
  font-family: var(--font-sans-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h5 {
  font-family: var(--font-sans-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

p {
  font-family: var(--font-sans-text);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  /* WCAG 2.1 AA target size — holds at the mobile type scale below */
  min-height: 44px;
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border: var(--btn-border-width) solid transparent;
  border-radius: var(--btn-radius);
  font-family: var(--font-sans-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    opacity var(--transition-fast);
}

.btn:disabled,
.btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* Arrow affordance — append via .btn--arrow or use span.btn__arrow */
.btn--arrow::after,
.btn__arrow {
  content: "→";
  display: inline-block;
  font-weight: 700;
  line-height: 1;
}

.btn__arrow {
  content: none;
}

/* Primary — solid black */
.btn--primary {
  background-color: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-dark-gray-01);
  border-color: var(--color-dark-gray-01);
}

/* Primary outline — white fill, black border */
.btn--primary-outline {
  background-color: var(--color-white);
  border-color: var(--color-black);
  color: var(--color-black);
}

.btn--primary-outline:hover {
  background-color: var(--color-light-gray-01);
}

/* Secondary — transparent, white border (for dark backgrounds) */
.btn--secondary {
  background-color: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn--secondary:hover {
  background-color: rgb(255 255 255 / 0.12);
}

/* -------------------------------------------------------------------------- */
/* Hyperlink CTAs                                                             */
/* -------------------------------------------------------------------------- */

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.link-cta::after {
  content: "→";
}

.link-cta:hover {
  opacity: 0.7;
}

.link-cta:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.link-cta--blue {
  color: var(--color-citi-blue);
}

.link-cta--black {
  color: var(--color-black);
}

.link-cta--gold {
  color: var(--color-citigold);
}


/* -------------------------------------------------------------------------- */
/* Color utilities                                                            */
/* -------------------------------------------------------------------------- */


.bg-white { background-color: var(--color-white); }
.bg-black { background-color: var(--color-black); }
.bg-light-gray-01 { background-color: var(--color-light-gray-01); }
.bg-light-gray-02 { background-color: var(--color-light-gray-02); }
.bg-light-gray-03 { background-color: var(--color-light-gray-03); }
.bg-light-gray-04 { background-color: var(--color-light-gray-04); }
.bg-dark-gray-01 { background-color: var(--color-dark-gray-01); }
.bg-dark-gray-02 { background-color: var(--color-dark-gray-02); }
.bg-dark-gray-03 { background-color: var(--color-dark-gray-03); }
.bg-dark-gray-04 { background-color: var(--color-dark-gray-04); }
.bg-citigold { background-color: var(--color-citigold); }
.bg-citigold-bg { background-color: var(--color-citigold-bg); }
.bg-cpc { background-color: var(--color-cpc-bg); }
.bg-citi-blue { background-color: var(--color-citi-blue); }
.bg-citi-blue-bg { background-color: var(--color-citi-blue-bg); }
.bg-citi-blue-bg-light { background-color: var(--color-citi-blue-bg-light); }

.text-white { color: var(--color-white); }
.text-black { color: var(--color-black); }
.text-light-gray-01 { color: var(--color-light-gray-01); }
.text-light-gray-02 { color: var(--color-light-gray-02); }
.text-light-gray-03 { color: var(--color-light-gray-03); }
.text-dark-gray-01 { color: var(--color-dark-gray-01); }
.text-dark-gray-02 { color: var(--color-dark-gray-02); }
.text-dark-gray-03 { color: var(--color-dark-gray-03); }
.text-citigold { color: var(--color-citigold); }
.text-citi-blue { color: var(--color-citi-blue); }

/* -------------------------------------------------------------------------- */
/* Layout helpers                                                             */
/* -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------------------------- */
/* Responsive type (optional scale-down)                                      */
/* -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .h1,
  .text-h1,
  h1 {
    font-size: 36px;
  }

  .h2,
  .text-h2,
  h2 {
    font-size: 32px;
  }

  .text-body-1 {
    font-size: 18px;
  }

  .btn {
    font-size: 16px;
    padding: 12px 20px;
  }
}
