/* =============================================================
   Cometeer Design System — CSS
   Source of truth: tokens.json via project-ne4we.vercel.app
   Fonts: hosted at project-ne4we.vercel.app/_fonts/
   ============================================================= */

/* ── Fonts ───────────────────────────────────────────────── */

@font-face {
  font-family: 'Agipo';
  src: url('https://project-ne4we.vercel.app/_fonts/agipo/agipo_bold_condensed.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BauTF';
  src: url('https://project-ne4we.vercel.app/_fonts/bautf/BauTF-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BauTF';
  src: url('https://project-ne4we.vercel.app/_fonts/bautf/BauTF-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BauTF';
  src: url('https://project-ne4we.vercel.app/_fonts/bautf/BauTF-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Design Tokens ───────────────────────────────────────── */

:root {
  /* Base */
  --color-black: #000000;
  --color-white: #ffffff;

  /* Neutral scale */
  --neutral-50:  #ffffff;
  --neutral-100: #fbfbfa;
  --neutral-200: #f7f8f0;
  --neutral-300: #f3f5e8;
  --neutral-400: #e9ebe1;
  --neutral-500: #d8dacf;
  --neutral-600: #bec0b5;
  --neutral-700: #a5a79d;
  --neutral-800: #95988c;
  --neutral-900: #888982;

  /* Grey scale */
  --grey-50:  #fcfcfc;
  --grey-100: #efefef;
  --grey-200: #d0d0d0;
  --grey-300: #b7b7b7;
  --grey-400: #a3a3a3;
  --grey-500: #888888;
  --grey-600: #696969;
  --grey-700: #434343;
  --grey-800: #2c2b2b;
  --grey-900: #1a1a1a;

  /* Gold scale */
  --gold-50:  #fdf8e9;
  --gold-100: #fbf0ce;
  --gold-200: #f9e8b3;
  --gold-300: #f7df98;
  --gold-400: #f5d577;
  --gold-500: #eacc75;
  --gold-600: #d6ba68;
  --gold-700: #b7a05d;
  --gold-800: #877952;
  --gold-900: #34322c;

  /* Brown scale */
  --brown-50:  #e2c6b7;
  --brown-100: #dcb9a7;
  --brown-200: #ca9b81;
  --brown-300: #a1775e;
  --brown-400: #8d624b;
  --brown-500: #814f34;
  --brown-600: #5d3926;
  --brown-700: #422513;
  --brown-800: #3b3836;
  --brown-900: #322a25;

  /* Red scale */
  --red-400: #e46159;
  --red-500: #ca4644;
  --red-600: #891d1c;

  /* Primary brand */
  --primary-cream:       var(--neutral-300);   /* #f3f5e8 */
  --primary-black:       var(--grey-800);       /* #2c2b2b */
  --primary-frosted-gold: var(--gold-400);      /* #f5d577 */

  /* Secondary brand */
  --secondary-white:      var(--neutral-50);
  --secondary-extra-cream: var(--neutral-200);
  --secondary-dark-cream: var(--neutral-500);
  --secondary-light-grey: var(--neutral-900);
  --secondary-dark-grey:  var(--grey-600);
  --secondary-dark-black: var(--grey-900);
  --secondary-light-gold: #f7f0d3;
  --secondary-dark-gold:  var(--gold-600);
  --secondary-light-brown: var(--brown-300);
  --secondary-medium-brown: var(--brown-500);
  --secondary-dark-brown: var(--brown-700);
  --secondary-light-blue: #c0e1ec;

  /* Theme — foreground */
  --theme-fg-default:           var(--grey-800);    /* #2c2b2b */
  --theme-fg-muted:             var(--grey-600);    /* #696969 */
  --theme-fg-subtle:            var(--neutral-900); /* #888982 */
  --theme-fg-on-emphasis:       var(--neutral-300); /* #f3f5e8 — text on dark bg */
  --theme-fg-on-accent:         var(--grey-800);
  --theme-fg-on-disabled:       var(--grey-600);

  /* Theme — background */
  --theme-bg-surface:  var(--neutral-300);  /* #f3f5e8 — default page bg */
  --theme-bg-muted:    var(--neutral-500);  /* #d8dacf */
  --theme-bg-subtle:   var(--neutral-200);  /* #f7f8f0 */
  --theme-bg-canvas:   var(--neutral-300);  /* #f3f5e8 */

  /* Theme — accent */
  --theme-accent-default:         var(--gold-400);   /* #f5d577 */
  --theme-accent-emphasis:        var(--grey-800);   /* #2c2b2b */
  --theme-accent-emphasis-darker: var(--grey-900);   /* #1a1a1a */
  --theme-accent-subtle:          var(--grey-600);
  --theme-accent-disabled:        var(--neutral-500);

  /* Theme — border */
  --theme-border-default: var(--neutral-500);  /* #d8dacf */

  /* Theme — input */
  --theme-input-bg:          var(--neutral-300);
  --theme-input-text:        var(--grey-800);
  --theme-input-placeholder: var(--grey-600);
  --theme-input-border:      var(--neutral-900);

  /* Fonts */
  --font-sans:  'BauTF', system-ui, sans-serif;
  --font-agipo: 'Agipo', sans-serif;

  /* Breakpoints (as reference — use in media queries directly) */
  --breakpoint-sm:  576px;
  --breakpoint-md:  768px;
  --breakpoint-lg:  992px;
  --breakpoint-xl:  1200px;
  --breakpoint-xxl: 1400px;
  --max-width:      1320px;

  /* Spacing */
  --navbar-height: 68px;
}

/* ── Base Reset & Defaults ───────────────────────────────── */

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

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--theme-fg-default);
  background-color: var(--theme-bg-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography Scale ────────────────────────────────────── */

/* Display */
.display-title {
  font-family: var(--font-agipo);
  font-size: 96px;
  line-height: 104px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.display-subtitle {
  font-family: var(--font-sans);
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0;
  font-weight: 500;
}

/* Headings */
h1, .h1 {
  font-family: var(--font-agipo);
  font-size: 72px;
  line-height: 82px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2, .h2 {
  font-family: var(--font-agipo);
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h3, .h3 {
  font-family: var(--font-agipo);
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h4, .h4 {
  font-family: var(--font-agipo);
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h5, .h5 {
  font-family: var(--font-agipo);
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h6, .h6 {
  font-family: var(--font-agipo);
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* Body */
.text-large  { font-size: 20px; line-height: 28px; }
.text-regular { font-size: 16px; line-height: 24px; }
.text-small  { font-size: 14px; line-height: 20px; }
.text-xs     { font-size: 12px; line-height: 18px; }
.text-xxs    { font-size: 10px; line-height: 16px; }

.text-medium { font-weight: 500; }
.text-bold   { font-weight: 700; }

/* Caption */
.caption {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── Mobile typography overrides ─────────────────────────── */

@media (max-width: 768px) {
  .display-title  { font-size: 72px; line-height: 82px; }
  .display-subtitle { font-size: 20px; line-height: 28px; }
  h1, .h1 { font-size: 48px; line-height: 56px; }
  h2, .h2 { font-size: 32px; line-height: 40px; }
  h3, .h3 { font-size: 24px; line-height: 32px; }
  h4, .h4 { font-size: 20px; line-height: 28px; }
  h5, .h5 { font-size: 18px; line-height: 24px; }
  h6, .h6 { font-size: 16px; line-height: 22px; }
}

/* ── Layout utilities ────────────────────────────────────── */

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

@media (min-width: 768px) {
  .container { padding-inline: 48px; }
}

@media (min-width: 1200px) {
  .container { padding-inline: 64px; }
}

/* ── Common components ───────────────────────────────────── */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

/* Arrow span inside buttons — animates right on hover per brand guide */
.btn-arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}
.btn:hover .btn-arrow {
  transform: translateX(6px);
}

.btn-primary {
  background-color: var(--theme-accent-emphasis);  /* #2c2b2b */
  color: var(--theme-fg-on-emphasis);               /* cream */
}
.btn-primary:hover {
  /* Brand guide: primary button hover = gold fill + dark text */
  background-color: var(--primary-frosted-gold);
  color: var(--theme-fg-default);
}

.btn-secondary {
  background-color: transparent;
  color: var(--theme-fg-default);
  border: 1.5px solid var(--theme-fg-default);
}
.btn-secondary:hover {
  background-color: var(--theme-bg-muted);
}

.btn-gold {
  background-color: var(--primary-frosted-gold);
  color: var(--theme-fg-default);
}
.btn-gold:hover {
  background-color: var(--gold-500);
}

.btn-lg {
  font-size: 14px;
  padding: 18px 40px;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--theme-border-default);
  margin: 0;
}
