/* ============================================================
   styles.css  –  Global / Base Styles
   ============================================================
   This file sets site-wide design tokens (CSS custom properties),
   resets browser defaults, and styles elements that every page shares.
   Component-specific styles live in each component's own .css file
   inside react/components/<ComponentName>/.
   ============================================================ */

/* ── Design Tokens (CSS Custom Properties) ──────────────────
   Change a value here and it updates everywhere on the site.
   ─────────────────────────────────────────────────────────── */
:root {
  /* Brand colours */
  --color-primary:      #cc0000;   /* red — buttons, links, accents */
  --color-primary-dark: #990000;   /* darker red — hover state      */
  --color-dark:         #222222;   /* navbar, footer backgrounds    */
  --color-topbar:       #111111;   /* top utility bar               */
  --color-white:        #ffffff;
  --color-light-gray:   #f4f4f4;   /* section backgrounds           */
  --color-text:         #333333;   /* default body text             */
  --color-text-muted:   #666666;   /* secondary text                */
  --color-border:       #dddddd;

  /* Typography */
  --font-body:     'Open Sans', Helvetica, Arial, sans-serif;
  --font-heading:  'Oswald', sans-serif;

  /* Spacing scale */
  --space-xs:  0.25rem;   /*  4px */
  --space-sm:  0.5rem;    /*  8px */
  --space-md:  1rem;      /* 16px */
  --space-lg:  2rem;      /* 32px */
  --space-xl:  4rem;      /* 64px */

  /* Layout */
  --max-width:     1200px;
  --navbar-height: 80px;

  /* Transitions */
  --transition-fast: 0.2s ease;
}

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

/* ── Base typography ─────────────────────────────────────── */
/* html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
} */

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

#root {
  display: flex;
  flex-direction: column;
  flex: 1;
}

main {
  flex: 1;
}

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

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

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

p {
  color: rgb(136, 136, 136);
}

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

ul {
  list-style: none;
}

/* ── Layout helpers ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-xl) 0;
}

.section--dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.section--gray {
  background-color: var(--color-light-gray);
}

/* ── Reusable button ─────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  text-align: center;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

/* ── Utility ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-md       { margin-top: var(--space-md); }
.mt-lg       { margin-top: var(--space-lg); }

/* ── Responsive: mobile breakpoint ──────────────────────── */
@media (max-width: 768px) {
  :root {
    --navbar-height: 60px;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-lg) 0;
  }
}

/* -- Controlling Home Page -- */
.home_wrapper {
  max-width: 1140px;
  margin: 0 auto;
}