/* =====================================================
   BASE STYLES - Majuí Arquitetura
   Design tokens, reset, and foundational styles
   ===================================================== */

/* Font Face Declarations */
@font-face {
  font-family: 'Meshed Display';
  src: url('../fonts/MeshedDisplay-Thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'Meshed Display';
  src: url('../fonts/MeshedDisplay-ThinSlanted.otf') format('opentype');
  font-weight: 100;
  font-style: italic;
}

@font-face {
  font-family: 'Meshed Display';
  src: url('../fonts/MeshedDisplay-ExtraLight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'Meshed Display';
  src: url('../fonts/MeshedDisplay-ExtLtSlant.otf') format('opentype');
  font-weight: 200;
  font-style: italic;
}

@font-face {
  font-family: 'Meshed Display';
  src: url('../fonts/MeshedDisplay-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Meshed Display';
  src: url('../fonts/MeshedDisplay-LightSlanted.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: 'Meshed Display';
  src: url('../fonts/MeshedDisplay-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Meshed Display';
  src: url('../fonts/MeshedDisplay-Slanted.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Meshed Display';
  src: url('../fonts/MeshedDisplay-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Meshed Display';
  src: url('../fonts/MeshedDisplay-MediumSlanted.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: 'Meshed Display';
  src: url('../fonts/MeshedDisplay-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Meshed Display';
  src: url('../fonts/MeshedDisplay-SemiBoldSlanted.otf') format('opentype');
  font-weight: 600;
  font-style: italic;
}

@font-face {
  font-family: 'Meshed Display';
  src: url('../fonts/MeshedDisplay-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Meshed Display';
  src: url('../fonts/MeshedDisplay-BoldSlanted.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'Meshed Display';
  src: url('../fonts/MeshedDisplay-ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'Meshed Display';
  src: url('../fonts/MeshedDisplay-ExtBdSlant.otf') format('opentype');
  font-weight: 800;
  font-style: italic;
}

@font-face {
  font-family: 'Meshed Display';
  src: url('../fonts/MeshedDisplay-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Meshed Display';
  src: url('../fonts/MeshedDisplay-BlackSlanted.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
}

/* Design Tokens */
:root {
  /* Color Palette - extracted from mockup */
  --bg-ice: #F5F6F3;
  --bg-ice-2: #e5e8da;
  --neutral-warm: #c3bfb5;
  --accent-terracotta: #a16e46;
  --accent-brown: #573a2f;
  --deep-slate: #324650;
  --steel-blue: #455d6a;
  --pale-blue-1: #c5d7da;
  --text-dark: #1b1b1b;
  --text-light: #F6F6F3;
  --nuvem: #E5E8DA;
  
  /* Additional semantic colors */
  --text-body: #2a2a28;
  --text-vinhedo: #522E28;
  --deep-slate-op-30: rgba(50, 70, 80, 0.3);
  
  /* Typography Scale */
  /*--font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-body: 'Inter', 'system-ui', Arial, sans-serif;*/
  --font-meshed: 'Meshed Display', serif;
  --font-montserrat: 'Montserrat', sans-serif;
  
  /* Fluid Typography */
  --text-h1: clamp(40px, 6vw, 72px);
  --text-h2: clamp(28px, 3.8vw, 48px);
  --text-h3: clamp(20px, 2.5vw, 32px);
  --text-body: clamp(16px, 1.4vw, 18px);
  --text-small: 0.88rem;
  
  /* Spacing Scale */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-xxl: 72px;
  
  /* Layout */
  --container-width: min(1240px, 92vw);
  --container-gutter: clamp(16px, 3vw, 24px);
  --grid-gap: 28px;
  --radius: 8px;
  
  /* Animation */
  --transition-fast: 200ms ease-out;
  --transition-medium: 280ms ease-out;
  --transition-slow: 320ms ease-out;
}

/* Reset and Normalize */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-ice);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}

h1 {
  font-size: var(--text-h1);
  font-weight: 300;
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--text-h2);
  font-weight: 400;
  letter-spacing: -0.005em;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 500;
}

p {
  line-height: 1.65;
  max-width: 65ch;
}

em {
  font-style: italic;
  font-weight: 500;
}

small {
  font-size: var(--text-small);
  letter-spacing: 0.01em;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent-terracotta);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

a:focus-visible {
  outline: 2px solid var(--accent-terracotta);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Lists */
ul, ol {
  list-style: none;
}

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

/* Form elements */
input, button, textarea, select {
  font: inherit;
  color: inherit;
}

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

/* Accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--accent-brown);
  color: var(--text-light);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  z-index: 1000;
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: 16px;
}

/* Utility Classes */
.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;
}

.container {
  width: 100%;
  margin: 0;
  padding: 120px 24px 0 24px;
}

.container__deps {
  width: 100%;
  margin: 0;
  padding: 120px;
}

/* Font Features */
.font-features {
  font-feature-settings: 'liga', 'clig', 'kern';
}

.font-display {
  font-feature-settings: 'liga', 'clig', 'kern', 'ss01';
}

/* Animation utilities */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--transition-medium), transform var(--transition-medium);
  }
  
  .fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mockup Overlay for Development */
.mockup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
  mix-blend-mode: multiply;
}

.mockup-overlay__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
