/* ==========================================================================
   0. FONTES LOCAIS (@font-face)
   ========================================================================== */

/* Inter Regular (400) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fontes/inter-v20-latin-regular.woff2') format('woff2');
}

/* Inter Medium (500) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fontes/inter-v20-latin-500.woff2') format('woff2');
}

/* Inter SemiBold (600) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fontes/inter-v20-latin-600.woff2') format('woff2');
}

/* Inter Bold (700) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fontes/inter-v20-latin-700.woff2') format('woff2');
}

/* Manrope Regular (400) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fontes/manrope-v20-latin-regular.woff2') format('woff2');
}

/* Manrope Medium (500) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fontes/manrope-v20-latin-500.woff2') format('woff2');
}

/* Manrope SemiBold (600) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fontes/manrope-v20-latin-600.woff2') format('woff2');
}

/* Manrope Bold (700) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fontes/manrope-v20-latin-700.woff2') format('woff2');
}

/* Fraunces Variable (400 - 700) */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fontes/fraunces-v38-latin-regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fontes/fraunces-v38-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   NATA PORTUGUESE 2.0 - DESIGN SYSTEM & THEME TOKENS
   ========================================================================== */

:root {
  /* ------------------------------------------------------------------------
     1. CORES PRIMITIVAS E PAPÉIS
     ------------------------------------------------------------------------ */
  
  /* Papéis de marca principais */
  --color-base: #F1ECDE;        /* Bege (base) */
  --color-base-white: #F5F4F4;  /* Branco Off-White Figma */
  --color-base-black: #0E0E0C;  /* Preto (base) */
  --color-white: #FFFFFF;       /* Branco Absoluto */
  --color-text: #2A1C12;        /* Marrom Madeira (texto e superfícies escuras) */
  --color-olive: #858D36;       /* Verde Oliveira */

  /* Terracota — Primary / Ação */
  --color-terracota-100: #F8F2EF;
  --color-terracota-200: #F0E1DB;
  --color-terracota-300: #E5C8BD;
  --color-terracota-400: #D5A490;
  --color-terracota-500: #D96A3D;
  --color-terracota-600: #CB582A;
  --color-terracota-700: #9C4826;
  --color-terracota-800: #6E3721;
  --color-terracota-900: #3F2318;
  --color-primary: var(--color-terracota-500);
  --color-primary-hover: var(--color-terracota-600);

  /* Amarelo — Destaque / Estrelas */
  --color-amarelo-100: #FFFBF0;
  --color-amarelo-200: #FEECB9;
  --color-amarelo-300: #FDDE81;
  --color-amarelo-400: #FED048;
  --color-amarelo-500: #EEBA2D; 
  --color-amarelo-600: #D49303;
  --color-amarelo-700: #9C6304;
  --color-amarelo-800: #653B04;
  --color-amarelo-900: #301A03;

  /* Neutros — UI */
  --color-neutral-100: #FBFAF8;
  --color-neutral-200: #D9D4C7;
  --color-neutral-300: #F4ECCF;
  --color-neutral-400: #B8B4AB;
  --color-neutral-500: #94918B;
  --color-neutral-600: #706E69;
  --color-neutral-700: #4E4D4A;
  --color-neutral-800: #2E2D2B;
  --color-neutral-900: #151413;

  /* Indigo — Ilustração */
  --color-indigo-100: #EFF9FA;
  --color-indigo-200: #E4F2F7;
  --color-indigo-300: #B2D6E9;
  --color-indigo-400: #80B2DB;
  --color-indigo-500: #4F88CB;
  --color-indigo-600: #325DA8;
  --color-indigo-700: #2C3F78;
  --color-indigo-800: #151D44;
  --color-indigo-900: #060713;

  /* Atlântico — Ilustração */
  --color-atlantico-100: #F1F5F6;
  --color-atlantico-200: #ABCBD7;
  --color-atlantico-300: #C6D6DC;
  --color-atlantico-400: #A0BBC5;
  --color-atlantico-500: #6EA5BA;
  --color-atlantico-600: #508EA5;
  --color-atlantico-700: #426F80;
  --color-atlantico-800: #33515C;
  --color-atlantico-900: #213036;

  /* Verde (Marca) — Ilustração */
  --color-verde-100: #EDF0DB;
  --color-verde-200: #DBE2BD;
  --color-verde-300: #C2D08F;
  --color-verde-400: #ABBD64;
  --color-verde-500: #94A53A;
  --color-verde-600: #7F8E31;
  --color-verde-700: #687528;
  --color-verde-800: #515B1F;
  --color-verde-900: #384014;

  /* Functional — State Feedback */
  --color-success-surface: #E8F0E6;
  --color-success-default: #4F7A43;
  --color-warning-surface: #FBF1DD;
  --color-warning-default: #C98A2B;
  --color-error-surface: #F7E7E4;
  --color-error-default: #B5483C;
  --color-info-surface: #E6EDF4;
  --color-info-default: #4E6E98;

  /* ------------------------------------------------------------------------
     2. TIPOGRAFIA FLUIDA (MANROPE, FRAUNCES E INTER COM CLAMP)
     ------------------------------------------------------------------------ */
  --font-family-title: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-title-serif: 'Fraunces', Georgia, serif;
  --font-family-subtitle: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-button: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-label: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-caption: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-overline: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-data: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Sizes using clamp(mobile, calc, desktop) */
  --font-size-title-display: clamp(2rem, 1.455rem + 2.73vw, 3.5rem);          /* 32px -> 44px -> 56px */
  --font-size-title-large: clamp(1.75rem, 1.284rem + 2.33vw, 3rem);           /* 28px -> 38px -> 48px */
  --font-size-title-medium: clamp(1.5rem, 1.221rem + 1.4vw, 2.25rem);         /* 24px -> 30px -> 36px */
  --font-size-title-small: clamp(1.25rem, 1.017rem + 1.16vw, 1.875rem);      /* 20px -> 24px -> 30px */

  --font-size-subtitle-large: clamp(1.125rem, 0.985rem + 0.7vw, 1.5rem);      /* 18px -> 20px -> 24px */
  --font-size-subtitle-medium: clamp(1rem, 0.907rem + 0.47vw, 1.25rem);       /* 16px -> 18px -> 20px */
  --font-size-subtitle-small: clamp(0.9375rem, 0.868rem + 0.35vw, 1.125rem);  /* 15px -> 16px -> 18px */

  --font-size-body-large: clamp(1rem, 0.907rem + 0.47vw, 1.25rem);            /* 16px -> 18px -> 20px */
  --font-size-body-medium: clamp(0.9375rem, 0.868rem + 0.35vw, 1.125rem);     /* 15px -> 16px -> 18px */
  --font-size-body-small: clamp(0.875rem, 0.829rem + 0.23vw, 1rem);           /* 14px -> 15px -> 16px */

  --font-size-label-large: clamp(1rem, 0.907rem + 0.47vw, 1.25rem);           /* 16px -> 18px -> 20px */
  --font-size-label-medium: clamp(0.875rem, 0.829rem + 0.23vw, 1rem);         /* 14px -> 15px -> 16px */
  --font-size-label-small: clamp(0.8125rem, 0.789rem + 0.12vw, 0.875rem);     /* 13px -> 14px -> 14px */

  --font-size-caption-large: clamp(0.8125rem, 0.743rem + 0.35vw, 1rem);       /* 13px -> 14px -> 16px */
  --font-size-caption-medium: clamp(0.75rem, 0.68rem + 0.35vw, 0.9375rem);    /* 12px -> 13px -> 15px */
  --font-size-caption-small: clamp(0.75rem, 0.703rem + 0.23vw, 0.875rem);     /* 12px -> 13px -> 14px */

  --font-size-button-large: clamp(1rem, 0.953rem + 0.23vw, 1.125rem);         /* 16px -> 16px -> 18px */
  --font-size-button-medium: clamp(0.9375rem, 0.914rem + 0.12vw, 1rem);       /* 15px -> 15px -> 16px */
  --font-size-button-small: clamp(0.8125rem, 0.789rem + 0.12vw, 0.875rem);    /* 13px -> 13px -> 14px */

  --font-size-overline: clamp(0.6875rem, 0.618rem + 0.35vw, 0.875rem);        /* 11px -> 12px -> 14px */
  --font-size-data: clamp(0.75rem, 0.703rem + 0.23vw, 0.875rem);            /* 12px -> 13px -> 14px */

  /* ------------------------------------------------------------------------
     3. ESPAÇAMENTO (BASE-4)
     ------------------------------------------------------------------------ */
  --space-2: 0.125rem;    /* 2px */
  --space-4: 0.25rem;     /* 4px */
  --space-8: 0.5rem;      /* 8px */
  --space-12: 0.75rem;    /* 12px */
  --space-16: 1rem;       /* 16px */
  --space-20: 1.25rem;    /* 20px */
  --space-24: 1.5rem;     /* 24px */
  --space-32: 2rem;       /* 32px */
  --space-40: 2.5rem;     /* 40px */
  --space-48: 3rem;       /* 48px */
  --space-64: 4rem;       /* 64px */
  --space-80: 5rem;       /* 80px */
  --space-96: 6rem;       /* 96px */
  --space-120: 7.5rem;    /* 120px */

  /* ------------------------------------------------------------------------
     4. RADIUS (BORDAS)
     ------------------------------------------------------------------------ */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-xxl: 32px;
  --radius-xxxl: 40px;
  --radius-full: 999px;

  /* ------------------------------------------------------------------------
     5. ELEVAÇÃO E GLOW
     ------------------------------------------------------------------------ */
  --elevation-1: 0 1px 2px rgba(42, 28, 18, 0.04), 0 1px 3px rgba(42, 28, 18, 0.06);
  --elevation-2: 0 2px 4px rgba(42, 28, 18, 0.05), 0 4px 8px rgba(42, 28, 18, 0.06);
  --elevation-3: 0 8px 24px rgba(42, 28, 18, 0.14);

  --glow-1: 0 0 12px rgba(217, 106, 61, 0.25);
  --glow-2: 0 0 24px rgba(217, 106, 61, 0.40);
  --glow-3: 0 0 36px rgba(217, 106, 61, 0.60);

  /* Container */
  --container-max-width: 1280px;
  --container-padding: clamp(1rem, 4vw, 2.5rem);
}

/* ==========================================================================
   6. RESET & CSS BASE (MOBILE FIRST & ACESSIBILIDADE)
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-body);
  font-size: var(--font-size-body-medium);
  line-height: 1.56;
  color: var(--color-text);
  background-color: var(--color-base);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
}

/* Foco Acessível (WCAG 2.1) */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* Visibilidade para Leitores de Ecrã (Skip Link) */
.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;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-text);
  color: var(--color-base);
  padding: var(--space-12) var(--space-20);
  z-index: 9999;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: var(--font-family-button);
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* Imagens responsivas e svgs */
img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* ------------------------------------------------------------------------
   7. CLASSES DE UTILIDADE DE TIPOGRAFIA
   ------------------------------------------------------------------------ */

.title-display {
  font-family: var(--font-family-title);
  font-size: var(--font-size-title-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.title-large {
  font-family: var(--font-family-title-serif);
  font-size: var(--font-size-title-large);
  line-height: 1.10;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.title-medium {
  font-family: var(--font-family-title-serif);
  font-size: var(--font-size-title-medium);
  line-height: 1.20;
  letter-spacing: 0.05em;
  font-weight: 400;
}

.title-small {
  font-family: var(--font-family-title);
  font-size: var(--font-size-title-small);
  line-height: 1.20;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.subtitle-large {
  font-family: var(--font-family-subtitle);
  font-size: var(--font-size-subtitle-large);
  line-height: 1.30;
  letter-spacing: -0.005em;
  font-weight: 600;
}

.subtitle-medium {
  font-family: var(--font-family-subtitle);
  font-size: var(--font-size-subtitle-medium);
  line-height: 1.60;
  font-weight: 400;
}

.subtitle-small {
  font-family: var(--font-family-subtitle);
  font-size: var(--font-size-subtitle-small);
  line-height: 1.40;
  font-weight: 500;
}

.body-large {
  font-family: var(--font-family-body);
  font-size: var(--font-size-body-large);
  line-height: 1.60;
  font-weight: 400;
}

.body-medium {
  font-family: var(--font-family-body);
  font-size: var(--font-size-body-medium);
  line-height: 1.56;
  font-weight: 400;
}

.body-small {
  font-family: var(--font-family-body);
  font-size: var(--font-size-body-small);
  line-height: 1.50;
  font-weight: 400;
}

.label-large {
  font-family: var(--font-family-label);
  font-size: var(--font-size-label-large);
  line-height: 1.20;
  font-weight: 600;
}

.label-medium {
  font-family: var(--font-family-label);
  font-size: var(--font-size-label-medium);
  line-height: 1.20;
  font-weight: 400;
}

.label-small {
  font-family: var(--font-family-label);
  font-size: var(--font-size-label-small);
  line-height: 1.20;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.caption-large {
  font-family: var(--font-family-caption);
  font-size: var(--font-size-caption-large);
  line-height: 1.40;
  font-weight: 500;
}

.caption-medium {
  font-family: var(--font-family-caption);
  font-size: var(--font-size-caption-medium);
  line-height: 1.40;
  letter-spacing: 0.005em;
  font-weight: 400;
}

.caption-small {
  font-family: var(--font-family-caption);
  font-size: var(--font-size-caption-small);
  line-height: 1.40;
  letter-spacing: -0.05em;
  font-weight: 600;
}




.overline {
  font-family: var(--font-family-overline);
  font-size: var(--font-size-overline);
  line-height: 1.40;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.data {
  font-family: var(--font-family-data);
  font-size: var(--font-size-data);
  line-height: 1.40;
  font-weight: 400;
}

/* Layout container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ==========================================================================
   8. COMPONENTES DE SEÇÕES (HERO, ETC)
   ========================================================================== */

.hero-section {
  padding-top: clamp(var(--space-32), 6vw, var(--space-80));
  padding-bottom: clamp(var(--space-32), 6vw, var(--space-80));
  background-color: var(--color-base);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(var(--space-16), 3vw, var(--space-24));
  max-width: 800px;
}

.hero-title {
  color: var(--color-text);
}

.hero-subtitle {
  color: var(--color-neutral-700);
}

.hero-actions {
  margin-top: var(--space-8);
}






/* ==========================================================================
   ÍCONE DE EDIÇÃO CONTEXTUAL ACF / TEMA (Apenas Admins)
   ========================================================================== */

.editable-section {
  position: relative;
}

.nata-acf-edit-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background-color: var(--color-terracota-500);
  color: var(--color-neutral-100);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 101;
  opacity: 0.85;
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(42, 28, 18, 0.2);
}

.nata-acf-edit-icon:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.15);
  background-color: var(--color-terracota-700);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(42, 28, 18, 0.3);
}

@media (max-width: 768px) {
  .nata-acf-edit-icon {
    left: 8px;
    top: 16px;
    transform: none;
  }
  .nata-acf-edit-icon:hover {
    transform: scale(1.1);
  }
}
