/* ==========================================================================
   COTAPAREDES — Base CSS
   Design system tokens, reset, typography, and utilities
   ========================================================================== */

/* --------------------------------------------------------------------------
   @font-face — Suisse Intl (5 weights)
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Suisse Intl';
  src: url('../fonts/SuisseIntl-Book.woff2') format('woff2'),
       url('../fonts/SuisseIntl-Book.ttf') format('truetype');
  font-weight: 350;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Suisse Intl';
  src: url('../fonts/SuisseIntl-Regular.woff2') format('woff2'),
       url('../fonts/SuisseIntl-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Suisse Intl';
  src: url('../fonts/SuisseIntl-Medium.woff2') format('woff2'),
       url('../fonts/SuisseIntl-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Suisse Intl';
  src: url('../fonts/SuisseIntl-Semibold.woff2') format('woff2'),
       url('../fonts/SuisseIntl-Semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Suisse Intl';
  src: url('../fonts/SuisseIntl-Bold.woff2') format('woff2'),
       url('../fonts/SuisseIntl-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   @font-face — Neue Haas Display (5 weights)
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Neue Haas Display';
  src: url('../fonts/NeueHaasDisplay-Thin.woff2') format('woff2'),
       url('../fonts/NeueHaasDisplay-Thin.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Display';
  src: url('../fonts/NeueHaasDisplay-Light.woff2') format('woff2'),
       url('../fonts/NeueHaasDisplay-Light.woff') format('woff');
  font-weight: 350;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Display';
  src: url('../fonts/NeueHaasDisplay-Roman.woff2') format('woff2'),
       url('../fonts/NeueHaasDisplay-Roman.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Display';
  src: url('../fonts/NeueHaasDisplay-Medium.woff2') format('woff2'),
       url('../fonts/NeueHaasDisplay-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Display';
  src: url('../fonts/NeueHaasDisplay-Bold.woff2') format('woff2'),
       url('../fonts/NeueHaasDisplay-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   CSS Variables — Design System Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Colors */
  --color-text: #1a1a1a;
  --color-gray: #7A7A7A;
  --color-nav: #54595F;
  --color-link: #000;
  --color-bg: #fff;
  --color-bg-alt: #f7f7f7;
  --color-dark: #000;

  /* Typography */
  --font-primary: 'Suisse Intl', 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Layout */
  --container-width: 1000px;
  --header-height: 80px;
  --header-height-mobile: 64px;

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
}

/* --------------------------------------------------------------------------
   CSS Reset — Minimal
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

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

table {
  border-collapse: collapse;
  border-spacing: 0;
}

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

body {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 33px;
  letter-spacing: -0.3px;
  color: var(--color-text);
  background-color: var(--color-bg);
}

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 22px;
}

h4 {
  font-size: 18px;
}

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* Labels */
.label,
label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.3px;
  text-transform: uppercase;
  color: var(--color-gray);
}

small {
  font-size: 13px;
  color: var(--color-gray);
}

/* --------------------------------------------------------------------------
   Links
   -------------------------------------------------------------------------- */

a {
  color: var(--color-link);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

a:hover {
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

/* Display */
.u-hide { display: none !important; }
.u-block { display: block; }
.u-flex { display: flex; }
.u-grid { display: grid; }

/* Flexbox */
.u-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.u-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.u-flex-column {
  display: flex;
  flex-direction: column;
}

/* Text */
.u-text-center { text-align: center; }
.u-text-upper { text-transform: uppercase; }
.u-text-gray { color: var(--color-gray); }
.u-text-nav { color: var(--color-nav); }

/* Spacing */
.u-mt-sm { margin-top: var(--space-sm); }
.u-mt-md { margin-top: var(--space-md); }
.u-mt-lg { margin-top: var(--space-lg); }
.u-mt-xl { margin-top: var(--space-xl); }
.u-mb-sm { margin-bottom: var(--space-sm); }
.u-mb-md { margin-bottom: var(--space-md); }
.u-mb-lg { margin-bottom: var(--space-lg); }
.u-mb-xl { margin-bottom: var(--space-xl); }

/* Width */
.u-full-width { width: 100%; }

/* Visibility (responsive) */
@media (max-width: 767px) {
  .u-hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
  .u-hide-desktop { display: none !important; }
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
