/* ============================================================
   FRT CARS — Base Styles
   Resets, typography, containers, utility classes
   ============================================================ */

/* ----------------------------------------------------------
   Google Fonts
   ---------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

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

/* ----------------------------------------------------------
   HTML & Body
   ---------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  overflow-x: hidden;
  max-width: 100%;
  overscroll-behavior-x: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
  font-variant-ligatures: common-ligatures;
  min-height: 100vh;
}

.body-no-scroll {
  overflow: hidden;
}

/* ----------------------------------------------------------
   Headings
   ---------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--color-text);
  margin-bottom: var(--space-md);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-h4);
}

h5 {
  font-size: var(--fs-body-lg);
}

h6 {
  font-size: var(--fs-body);
}

/* ----------------------------------------------------------
   Paragraph & Inline Elements
   ---------------------------------------------------------- */
p {
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
  line-height: var(--lh-normal);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}

a:hover {
  color: var(--color-accent-hover);
}

strong,
b {
  font-weight: var(--fw-semibold);
}

em,
i {
  font-style: italic;
}

small {
  font-size: var(--fs-small);
}

/* ----------------------------------------------------------
   Images
   ---------------------------------------------------------- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

main,
#site-shell,
.header,
.footer {
  max-width: 100%;
}

iframe {
  max-width: 100%;
  border: 0;
}

/* ----------------------------------------------------------
   Selection
   ---------------------------------------------------------- */
::selection {
  background-color: var(--color-accent);
  color: #ffffff;
}

::-moz-selection {
  background-color: var(--color-accent);
  color: #ffffff;
}

/* ----------------------------------------------------------
   Custom Scrollbar — Dark Theme
   ---------------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-background);
}

::-webkit-scrollbar-thumb {
  background: var(--color-surface-hover);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-background);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-surface-hover) var(--color-background);
}

/* ----------------------------------------------------------
   Container System
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container-wide {
  max-width: var(--container-wide);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* ----------------------------------------------------------
   Section System
   ---------------------------------------------------------- */
.section {
  padding-top: var(--space-5xl);
  padding-bottom: var(--space-5xl);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header .section-tag {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--space-sm);
}

.section-header .section-title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.section-header .section-description {
  color: var(--color-text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
}

/* ----------------------------------------------------------
   Screen Reader Only
   ---------------------------------------------------------- */
.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;
}

/* ----------------------------------------------------------
   Text Utility Classes
   ---------------------------------------------------------- */
.text-accent {
  color: var(--color-accent);
}

.text-muted {
  color: var(--color-text-muted);
}

/* ----------------------------------------------------------
   Focus Visible — Accessibility
   ---------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ----------------------------------------------------------
   List Reset for Navigation
   ---------------------------------------------------------- */
nav ul,
nav ol,
.list-reset {
  list-style: none;
  padding: 0;
  margin: 0;
}
