/*
File: assets/css/main.css
Purpose: Global design tokens, base resets, typography, utilities, and Bootstrap overrides for BPSS.
Sections: Root variables, base elements, headings, section utilities, buttons, accessibility, utilities, container
*/

:root {
  --bpss-green: #1a7a2e;
  --bpss-green-light: #2ecc50;
  --bpss-green-dark: #0d4a1a;
  --bpss-green-pale: #f0f9f0;
  --bpss-orange: #FF6B00;
  --bpss-orange-light: #FF8C33;
  --bpss-orange-pale: #fff4eb;
  --bpss-white: #ffffff;
  --bpss-off-white: #f8f9fa;
  --bpss-light-gray: #f4f4f4;
  --bpss-mid-gray: #e8e8e8;
  --bpss-text-dark: #0d0d0d;
  --bpss-text-body: #3a3a3a;
  --bpss-text-muted: #6c757d;
  --bpss-text-light: #999999;
  --bpss-border: #e0e8e2;

  --font-display: 'Oswald', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --section-py: 80px;
  --section-py-mobile: 50px;
  --container-max: 1200px;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;

  --shadow-xs: 0 1px 4px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.09);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.13);
  --shadow-hover: 0 16px 48px rgba(0,0,0,0.16);
  --shadow-green: 0 4px 20px rgba(26,122,46,0.15);
  --shadow-orange: 0 4px 20px rgba(255,107,0,0.20);

  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 600ms ease;

  --navbar-height: 72px;
  --navbar-height-mobile: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--bpss-text-body);
  background-color: var(--bpss-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure {
  margin: 0;
}

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

svg,
video,
iframe {
  max-width: 100%;
  display: block;
}

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

a:hover {
  text-decoration: none;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--bpss-text-dark);
  line-height: 1.1;
  font-weight: 700;
}

h1 {
  font-size: 72px;
}

h2 {
  font-size: 42px;
}

h3 {
  font-size: 20px;
  font-weight: 600;
}

h4,
h5,
h6 {
  font-family: var(--font-body);
}

@media (max-width: 768px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 28px;
  }
}

.section-py {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bpss-green);
  margin-bottom: 10px;
}

.section-badge::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background-color: var(--bpss-green);
  margin-right: 8px;
  vertical-align: middle;
}

.section-subtitle {
  font-size: 18px;
  color: var(--bpss-text-muted);
  max-width: 580px;
  margin: 12px auto 0;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .section-py {
    padding-top: var(--section-py-mobile);
    padding-bottom: var(--section-py-mobile);
  }

  .section-subtitle {
    font-size: 16px;
  }
}

.btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary {
  background-color: var(--bpss-orange);
  border-color: var(--bpss-orange);
  color: var(--bpss-white);
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  transition: all var(--transition-base);
}

.btn-primary:hover {
  background-color: var(--bpss-orange-light);
  border-color: var(--bpss-orange-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-orange);
}

.btn-success {
  background-color: var(--bpss-green);
  border-color: var(--bpss-green);
  color: var(--bpss-white);
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.btn-success:hover {
  background-color: var(--bpss-green-light);
  border-color: var(--bpss-green-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-green);
}

.btn-outline-success {
  border-color: var(--bpss-green);
  color: var(--bpss-green);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.btn-outline-success:hover {
  background-color: var(--bpss-green);
  color: var(--bpss-white);
}

.btn-outline-light {
  border-color: rgba(255,255,255,0.7);
  color: var(--bpss-white);
}

.btn-outline-light:hover {
  background-color: rgba(255,255,255,0.15);
  color: var(--bpss-white);
}

.btn-warning {
  background-color: var(--bpss-orange);
  border-color: var(--bpss-orange);
  color: var(--bpss-white);
  font-weight: 700;
}

.btn-warning:hover {
  background-color: var(--bpss-orange-light);
  color: var(--bpss-white);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--bpss-orange);
  outline-offset: 3px;
}

.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;
}

::selection {
  background-color: var(--bpss-green);
  color: var(--bpss-white);
}

.text-green {
  color: var(--bpss-green);
}

.text-orange {
  color: var(--bpss-orange);
}

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

@media (min-width: 1400px) {
  .container {
    max-width: var(--container-max);
  }
}
