/*
 * base.css — reset, design tokens and base typography.
 *
 * Shared by every page of the site (home now, other sections in phase 2).
 * Keep this file free of page-specific rules; put those in home.css (or a
 * future page-specific stylesheet) instead.
 */

/* ---------------------------------------------------------------------- */
/* Reset                                                                   */
/* ---------------------------------------------------------------------- */

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

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
figure,
figcaption {
  margin: 0;
  padding: 0;
}

html {
  /* The original site scales its root font-size to 106.25% (17px on a
     16px browser default). We start from 17px directly for clarity. */
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.5;
}

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

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

/* ---------------------------------------------------------------------- */
/* Design tokens                                                          */
/* ---------------------------------------------------------------------- */

:root {
  /* Brand colors, taken from the live site's computed styles. */
  --color-brand-red: #de0000;
  --color-brand-red-hover: #dc5d5d;
  --color-text: #0b0b0b;
  --color-text-soft: #070707;
  --color-white: #ffffff;
  --color-bg-light: #f7f7f7;
  --color-divider: #f5f5f5;

  /* Typography.
     The live site renders nearly all headings and body copy in the
     system font stack below (a site-wide "Fonts Plugin" override beats
     Elementor's own per-widget Roboto/Roboto Slab/Karla typography, which
     ends up unused — verified with document.fonts on the live page).
     Only the nav menu and the buttons use a self-hosted webfont. */
  --font-base: Verdana, Geneva, sans-serif;
  --font-nav: "Open Sans", Verdana, Geneva, sans-serif;
  --font-button: "Rubik", Verdana, Geneva, sans-serif;

  /* Layout */
  --container-width: 1140px;
  --container-padding: 20px;

  /* Motion */
  --transition-fast: 0.3s;
}

/* ---------------------------------------------------------------------- */
/* Self-hosted webfonts                                                   */
/* ---------------------------------------------------------------------- */

/* Open Sans — used for the header navigation links. */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/open-sans-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;
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/open-sans-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;
}

/* Rubik — used for the pill buttons ("CONTACTO", "Ver planos", "Ver obras"). */
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/rubik-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;
}

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/rubik-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;
}

/* ---------------------------------------------------------------------- */
/* Base typography                                                        */
/* ---------------------------------------------------------------------- */

body {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 1rem; /* 17px */
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-base);
  font-weight: 400;
  color: var(--color-brand-red);
}

p {
  color: var(--color-text-soft);
}

a {
  color: var(--color-brand-red);
  transition: color var(--transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--color-brand-red-hover);
}

/* Visible focus outline for keyboard users (the original theme relies on
   browser defaults only; we keep it deliberate and consistent). */
:focus-visible {
  outline: 2px solid var(--color-brand-red);
  outline-offset: 2px;
}

/* Skip link: hidden until focused, lets keyboard users bypass the header. */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--color-brand-red);
  color: var(--color-white);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}
