/* ==========================================================================
   base.css — Reset, custom properties, base typography
   FinishingMart brand palette (FMART corporate identity)
   ========================================================================== */

/* --- Custom properties (design tokens) ---------------------------------- */
:root {

  /* === BRAND COLORS === */

  /* Primary — Interface Blue (used for actions, CTAs, links, accents) */
  --color-primary: #0077D4;
  --color-primary-dark: #005ea8;     /* hover state */
  --color-primary-light: #2b91e0;    /* lighter for highlights */

  /* Secondary — Dark Navy (used for headlines, header, footer, structure) */
  --color-secondary: #0F1F33;
  --color-secondary-dark: #08111f;   /* deeper navy */
  --color-secondary-light: #2a3c54;  /* lighter navy for hovers and states */

  /* Silver — neutral accent (dividers, subtle backgrounds, decorative dots) */
  --color-silver: #BFC5CC;
  --color-silver-dark: #9aa1a8;
  --color-silver-light: #dfe2e6;

  /* Alert — Limited use only (errors, required-field markers, validations) */
  --color-alert: #C73A3A;
  --color-alert-dark: #a52b2b;

  /* Legacy aliases — kept so we don't break existing component CSS.
     They now point to the new palette equivalents. */
  --color-accent: var(--color-silver);
  --color-industry-automotive: var(--color-secondary);
  --color-industry-construction: var(--color-secondary);
  --color-industry-aerospace: var(--color-secondary);
  --color-industry-electronics: var(--color-secondary);
  --color-industry-medical: var(--color-secondary);

  /* === NEUTRALS === */
  --color-bg: #ffffff;
  --color-bg-alt: #f5f6f8;
  --color-bg-muted: #ebedf0;

  --color-text: #1a1f2a;
  --color-text-muted: #525966;
  --color-text-soft: #7a8290;
  --color-text-on-dark: #ffffff;

  --color-border: #e2e5ea;
  --color-border-strong: var(--color-silver);

  /* === TYPOGRAPHY === */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont,
                      'Segoe UI', Roboto, sans-serif;
  --font-family-heading: var(--font-family-base);
  --font-size-base: 16px;
  --line-height-base: 1.6;

  /* === SPACING === */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;

  /* === LAYOUT === */
  --container-max: 1180px;
  --container-padding: 1.2rem;

  /* === EFFECTS === */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 31, 51, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 31, 51, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 31, 51, 0.12);
  --transition-base: 0.2s ease;

  /* Header heights */
  --header-height: 88px;
  --header-height-scrolled: 60px;
}

@media (max-width: 900px) {
  :root {
    --header-height: 76px;
  }
}

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  font-size: 1rem;
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-primary-dark);
}

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

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-secondary);
}

/* Utility class for sections with alternate background ----------------- */
.section-alt {
  background-color: var(--color-bg-alt);
}
