/* ============================================================
   ARCAIXAS — main.css
   Design System: variáveis, reset, tipografia, layout, utilitários
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Open+Sans:wght@400;500;600&display=swap');

/* ── Tokens de Design ── */
:root {
  /* Cores de marca */
  --forest:        #1B5E2F;
  --forest-dark:   #144D26;
  --forest-deeper: #0D3318;
  --leaf:          #3FA240;
  --leaf-dark:     #2D8835;
  --kraft:         #C8945A;
  --kraft-light:   #FDF5EC;
  --linen:         #F5F1EB;

  /* Neutros */
  --white:         #FFFFFF;
  --off-white:     #FAFAF8;
  --dark:          #111111;
  --mid:           #4A4A4A;
  --muted:         #8A8A8A;
  --border:        #E5DDD0;
  --border-light:  #EEE9E3;

  /* Sombras */
  --shadow-xs: 0 1px 4px rgba(17,17,17,.05);
  --shadow-sm: 0 2px 10px rgba(17,17,17,.07);
  --shadow-md: 0 6px 24px rgba(27,94,47,.10);
  --shadow-lg: 0 16px 48px rgba(27,94,47,.16);

  /* Border-radius */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-pill: 50px;

  /* Tipografia */
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Open Sans',  -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container-max:    1160px;
  --container-pad:    28px;
  --section-v:        88px;
  --header-h:         72px;

  /* Transição */
  --ease: all 0.25s ease;
  --ease-slow: all 0.4s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

ul, ol {
  list-style: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ── Skip Navigation (acessibilidade) ── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--forest);
  color: var(--white);
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 700;
  z-index: 9999;
  transition: top .2s;
}
.skip-nav:focus {
  top: 0;
}

/* ── Tipografia ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.1;
  color: var(--dark);
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 900; letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: clamp(1rem, 2vw, 1.15rem); font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: .95rem; font-weight: 700; }
h5 { font-size: .85rem; font-weight: 600; }

p {
  font-size: .95rem;
  color: var(--mid);
  line-height: 1.75;
}

strong { font-weight: 600; color: var(--dark); }

.eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 14px;
}

.lead {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── Container ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.container--narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ── Seções ── */
.section {
  padding: var(--section-v) 0;
}

.section--linen  { background: var(--linen); }
.section--white  { background: var(--white); }
.section--forest { background: var(--forest); }
.section--off    { background: var(--off-white); }

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

/* ── Section Header ── */
.section-header {
  margin-bottom: 52px;
}
.section-header.center {
  text-align: center;
}
.section-header h2 {
  margin-bottom: 12px;
}
.section-header p {
  max-width: 520px;
  font-size: .98rem;
}
.section-header.center p {
  margin: 0 auto;
}
.section-header__bar {
  display: block;
  width: 44px;
  height: 4px;
  background: var(--kraft);
  border-radius: 2px;
  margin-top: 16px;
}
.section-header.center .section-header__bar {
  margin: 16px auto 0;
}

/* ── Utilitários de espaçamento ── */
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }

/* ── Utilitários de display ── */
.flex         { display: flex; }
.flex-center  { display: flex; justify-content: center; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-start   { display: flex; align-items: flex-start; }
.flex-wrap    { flex-wrap: wrap; }
.gap-8        { gap: 8px; }
.gap-12       { gap: 12px; }
.gap-14       { gap: 14px; }
.gap-16       { gap: 16px; }
.gap-20       { gap: 20px; }
.gap-24       { gap: 24px; }
.gap-32       { gap: 32px; }

.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.text-forest { color: var(--forest) !important; }
.text-kraft  { color: var(--kraft) !important; }
.text-muted  { color: var(--muted) !important; }

.w-full { width: 100%; }

/* ── Signature: Kraft Strip ── */
.kraft-strip {
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--forest)      0%,
    var(--kraft)       30%,
    var(--leaf)        60%,
    var(--forest)      100%
  );
  flex-shrink: 0;
}

/* ── Placeholder de imagem (para produção) ── */
.img-placeholder {
  background: linear-gradient(145deg, var(--forest-deeper), var(--forest));
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.img-placeholder__icon {
  font-size: 2.4rem;
  opacity: .35;
}
.img-placeholder__label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.img-placeholder__desc {
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  line-height: 1.5;
  max-width: 180px;
}
.img-placeholder--team   { background: linear-gradient(145deg, #0F3D1E, #1B5E2F); }
.img-placeholder--factory { background: linear-gradient(145deg, #163322, #1F5C31); }
.img-placeholder--blog   { background: linear-gradient(145deg, #1B5E2F, #3D7A44); }
.img-placeholder--map    { background: linear-gradient(145deg, #2A3A2D, #3A5040); }

/* ── Print ── */
@media print {
  .header, .footer, .cta-band { display: none; }
  body { font-size: 12pt; }
}
