/* ============================================
   KARMA FIRE PROTECTION LLP - MAIN STYLES
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --fire-red: #E52329;
  --fire-red-dark: #B91A1F;
  --charcoal: #171717;
  --dark-gray: #292929;
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --text-gray: #555555;
  --border-gray: #E4E4E4;
  --font-main: 'Inter', 'Segoe UI', Arial, sans-serif;
  --shadow-sm: 0 2px 8px rgba(23, 23, 23, 0.08);
  --shadow-md: 0 6px 24px rgba(23, 23, 23, 0.12);
  --radius: 8px;
  --header-height: 84px;
  --section-pad: 100px;
  --container-max: 1240px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--fire-red);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 6px 0;
  font-weight: 600;
}

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

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

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

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

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

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.section-title .accent {
  color: var(--fire-red);
}

.section-lead {
  max-width: 720px;
  color: var(--text-gray);
  font-size: 1.06rem;
}

.section-dark .section-lead {
  color: #b8b8b8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fire-red);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--fire-red);
  display: inline-block;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
  line-height: 1.4;
}

.btn:active { transform: translateY(1px); }

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--fire-red-dark);
  border-color: var(--fire-red-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
}

.btn-outline-dark {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus-visible {
  background: var(--charcoal);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--border-gray);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--charcoal);
}

.btn .arrow {
  transition: transform .25s ease;
}

.btn:hover .arrow { transform: translateX(4px); }

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(229, 35, 41, 0.55);
  outline-offset: 2px;
}
