/*
 * Linha para escritórios de arquitetura e interiores: identidade editorial (ez-marketing/arquitetos/ESPEC.md, 15.4).
 * Só nas 5 páginas da linha (classe sx-arq no <body>, ver inc/arquitetos.php), carregada depois de site.css.
 * Troca as cores do conteúdo (<main>) pelos tokens da linha (papel, linho, pedra, grafite e um acento só, argila),
 * títulos em Cormorant Garamond e o resto em Inter, cantos retos, filetes finos e sem sombra. O cabeçalho e o rodapé
 * continuam os do site. Cormorant Garamond: SIL Open Font License 1.1 (ver fonts/OFL-CormorantGaramond.txt), subconjunto latin.
 */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-latin.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;
}

/* ---------- cores: claro ---------- */
body.sx-arq { --ez-bg: #F7F4EE; --ez-border: #D6CFC2; --ez-theme-color: #F7F4EE; }
body.sx-arq main {
  --ez-surface: #FFFFFF; --ez-surface-2: #EDE8DF; --ez-surface-3: #E4DED3;
  --ez-text: #1B1A18; --ez-text-muted: #5F584F; --ez-border: #D6CFC2; --ez-border-strong: #8A8276;
  --ez-brand: #8E4B32; --ez-link: #8E4B32; --ez-focus: #8E4B32;
  --ez-primary: #8E4B32; --ez-primary-hover: #733B26; --ez-on-primary: #FFFFFF;
  --ez-accent: #8E4B32; --ez-on-accent: #FFFFFF; --ez-marker: #8E4B32;
  --ez-success: #4F6B52; --ez-note-bg: #F2E6DF;
  --ez-inverse: #2E2C29; --ez-on-inverse: #F7F4EE; --ez-on-inverse-muted: #D6CFC2;
  --font-display: var(--font-text);
  --radius-sm: 2px; --radius-md: 2px; --radius-lg: 2px; --radius-xl: 4px;
  --shadow-1: none; --shadow-2: none; --shadow-bar: 0 -1px 0 #D6CFC2;
}

/* ---------- cores: escuro (tema do aparelho ou escolhido no site) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-ez-theme="light"]) body.sx-arq { --ez-bg: #1B1A18; --ez-border: #3D3A35; --ez-theme-color: #1B1A18; }
  :root:not([data-theme="light"]):not([data-ez-theme="light"]) body.sx-arq main {
    --ez-surface: #242220; --ez-surface-2: #2A2825; --ez-surface-3: #33302C;
    --ez-text: #EDE8DF; --ez-text-muted: #B8B0A4; --ez-border: #3D3A35; --ez-border-strong: #7A7266;
    --ez-brand: #C98A6B; --ez-link: #D9A285; --ez-focus: #C98A6B;
    --ez-primary: #C98A6B; --ez-primary-hover: #D69C80; --ez-on-primary: #1B1A18;
    --ez-accent: #C98A6B; --ez-on-accent: #1B1A18; --ez-marker: #C98A6B;
    --ez-success: #9DB89F; --ez-note-bg: #2A2825;
    --ez-inverse: #2E2C29; --ez-on-inverse: #F7F4EE; --ez-on-inverse-muted: #D6CFC2;
    --shadow-bar: 0 -1px 0 #3D3A35;
  }
}
:root[data-theme="dark"]:not([data-ez-theme="light"]) body.sx-arq,
:root[data-ez-theme="dark"] body.sx-arq { --ez-bg: #1B1A18; --ez-border: #3D3A35; --ez-theme-color: #1B1A18; }
:root[data-theme="dark"]:not([data-ez-theme="light"]) body.sx-arq main,
:root[data-ez-theme="dark"] body.sx-arq main {
  --ez-surface: #242220; --ez-surface-2: #2A2825; --ez-surface-3: #33302C;
  --ez-text: #EDE8DF; --ez-text-muted: #B8B0A4; --ez-border: #3D3A35; --ez-border-strong: #7A7266;
  --ez-brand: #C98A6B; --ez-link: #D9A285; --ez-focus: #C98A6B;
  --ez-primary: #C98A6B; --ez-primary-hover: #D69C80; --ez-on-primary: #1B1A18;
  --ez-accent: #C98A6B; --ez-on-accent: #1B1A18; --ez-marker: #C98A6B;
  --ez-success: #9DB89F; --ez-note-bg: #2A2825;
  --ez-inverse: #2E2C29; --ez-on-inverse: #F7F4EE; --ez-on-inverse-muted: #D6CFC2;
  --shadow-bar: 0 -1px 0 #3D3A35;
}

/* ---------- títulos em serifa (nunca abaixo de 24 px), o resto em Inter ---------- */
.sx-arq main h1,
.sx-arq main h2,
.sx-arq .sx-gal-modelos h3,
.sx-arq .sx-path__q,
.sx-arq .sx-price__value {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -.005em;
  font-variant-numeric: lining-nums;
}
.sx-arq .sx-hero h1 { font-weight: 500; font-size: clamp(2.375rem, 1.5rem + 3.6vw, 4.125rem); line-height: 1.04; max-width: 20ch; }
.sx-arq .sx-head h2,
.sx-arq .sx-h2 { font-size: clamp(1.875rem, 1.3rem + 2.4vw, 2.875rem); line-height: 1.1; }
.sx-arq .sx-cta h2 { font-size: clamp(1.75rem, 1.25rem + 1.8vw, 2.5rem); }
.sx-arq .sx-autoria h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem); }
.sx-arq .sx-gal-modelos h3 { font-size: 1.75rem; line-height: 1.15; }
.sx-arq .sx-path__q { font-size: 1.625rem; line-height: 1.12; }
.sx-arq .sx-price__value { font-size: clamp(3rem, 2.2rem + 2.6vw, 4rem); }
.sx-arq .sx-price__value small { font-family: var(--font-text); font-weight: 500; }
.sx-arq main h3 { font-weight: 600; }

/* ---------- filetes finos, cantos retos ---------- */
.sx-arq main .sx-s + .sx-s:not(.sx-s--alt) { border-top: 1px solid var(--ez-border); }
.sx-arq .ez-kicker::before { height: 1px; border-radius: 0; }
.sx-arq .sx-price { border-width: 1px; border-color: var(--ez-border-strong); }
.sx-arq .sx-path:hover { transform: none; border-color: var(--ez-text-muted); }
.sx-arq .sx-path img { border: 1px solid var(--ez-border); }
.sx-arq .sx-limits { border-left-width: 2px; }
.sx-arq .sx-autoria__foto { border-width: 1px; border-color: var(--ez-border); }

/* ---------- chamada final: bloco grafite, botão claro ---------- */
.sx-arq .sx-cta .ez-btn { --b-bg: #F7F4EE; --b-fg: #1B1A18; --b-hover: #EDE8DF; }
.sx-arq .sx-cta :focus-visible { outline-color: #F7F4EE; }
