/* ============================================================
   OnFire Protection - Global Styles
   ============================================================ */

/* --- Custom Properties --- */
:root {
  /* Colours */
  --color-accent: #d7261e;
  --color-accent-hover: #c0211a;
  --color-black: #000000;
  --color-dark: #0d0d0d;
  --color-dark-alt: #111111;
  --color-dark-bg: #080808;
  --color-page-bg: #ffffff;
  --color-card-bg: #ffffff;
  --color-body-text: #555555;
  --color-body-text-alt: #666666;
  --color-muted: #777777;
  --color-muted-light: #888888;
  --color-muted-lighter: #999999;
  --color-border: rgba(0, 0, 0, 0.06);
  --color-border-light: rgba(255, 255, 255, 0.06);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing */
  --section-pad-y: 140px;
  --section-pad-x: 40px;
  --section-pad-y-md: 100px;
  --section-pad-x-md: 24px;
  --section-pad-y-sm: 80px;
  --section-pad-x-sm: 20px;
  --max-width: 1400px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.3s ease;
  --transition-medium: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-image: 0.7s cubic-bezier(0.22, 1, 0.36, 1);

  /* Borders */
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 14px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-body-text);
  background-color: var(--color-page-bg);
  overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.15;
}

ul, ol {
  list-style: none;
}

/* --- Shared Components --- */

/* Section label (red uppercase with line) */
.section-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label--center {
  justify-content: center;
}

.section-label__line {
  width: 28px;
  height: 1px;
  background: rgba(215, 38, 30, 0.4);
}

.section-label--dark .section-label__line {
  background: rgba(215, 38, 30, 0.35);
}

/* Primary button */
.btn-primary {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  padding: 15px 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background var(--transition-fast), gap var(--transition-fast);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  gap: 14px;
}

.btn-primary svg {
  width: 12px;
  height: 12px;
}

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

.btn-primary--lg svg {
  width: 14px;
  height: 14px;
}

/* Ghost / secondary link */
.btn-ghost {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-fast), gap var(--transition-fast);
}

.btn-ghost:hover {
  color: #fff;
  gap: 12px;
}

.btn-ghost svg {
  width: 12px;
  height: 12px;
}

/* Ghosted watermark text */
.ghost-text {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.035);
  user-select: none;
  pointer-events: none;
}

.ghost-text--dark {
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.025);
}

/* Dark section separator line */
.section-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 30%,
    rgba(255, 255, 255, 0.06) 70%,
    transparent 100%
  );
}

.section-line--top { top: 0; }
.section-line--bottom { bottom: 0; }

/* Shared CTA section (all pages) */
.page-cta,
  .svc-cta,
.svc-cta,
.sec-cta,
.proj-cta,
.careers-cta,
.contact-cta,
.about-cta,
.hp-cta {
  position: relative;
  padding: 120px var(--section-pad-x);
  overflow: hidden;
  background: var(--color-dark-bg);
  text-align: center;
}

.page-cta__bg,
.svc-cta__bg,
.sec-cta__bg,
.proj-cta__bg,
.careers-cta__bg,
.contact-cta__bg,
.about-cta__bg,
.hp-cta__bg {
  position: absolute;
  inset: 0;
}

.page-cta__bg img,
.svc-cta__bg img,
.sec-cta__bg img,
.proj-cta__bg img,
.careers-cta__bg img,
.contact-cta__bg img,
.about-cta__bg img,
.hp-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  filter: grayscale(30%);
}

.page-cta__bg::after,
.svc-cta__bg::after,
.sec-cta__bg::after,
.proj-cta__bg::after,
.careers-cta__bg::after,
.contact-cta__bg::after,
.about-cta__bg::after,
.hp-cta__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(8, 8, 8, 0.4) 0%, rgba(8, 8, 8, 0.96) 70%);
}

.page-cta__content,
.svc-cta__content,
.sec-cta__content,
.proj-cta__content,
.careers-cta__content,
.contact-cta__content,
.about-cta__content,
.hp-cta__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.page-cta__label,
.svc-cta__label,
.sec-cta__label,
.proj-cta__label,
.careers-cta__label,
.contact-cta__label,
.about-cta__label,
.hp-cta__label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.page-cta__label-line,
.svc-cta__label-line,
.sec-cta__label-line,
.proj-cta__label-line,
.careers-cta__label-line,
.contact-cta__label-line,
.about-cta__label-line,
.hp-cta__label-line {
  width: 24px;
  height: 1px;
  background: rgba(215, 38, 30, 0.4);
}

.page-cta__title,
.svc-cta__title,
.sec-cta__title,
.proj-cta__title,
.careers-cta__title,
.contact-cta__title,
.about-cta__title,
.hp-cta__title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 300;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.page-cta__title strong,
.svc-cta__title strong,
.sec-cta__title strong,
.proj-cta__title strong,
.careers-cta__title strong,
.contact-cta__title strong,
.about-cta__title strong,
.hp-cta__title strong {
  font-weight: 400;
}

.page-cta__text,
.svc-cta__text,
.sec-cta__text,
.proj-cta__text,
.careers-cta__text,
.contact-cta__text,
.about-cta__text,
.hp-cta__text {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.page-cta__buttons,
.svc-cta__buttons,
.sec-cta__buttons,
.proj-cta__buttons,
.careers-cta__buttons,
.contact-cta__buttons,
.about-cta__buttons,
.hp-cta__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

@media (max-width: 640px) {
  .page-cta,
  .svc-cta,
.svc-cta,
.sec-cta,
  .proj-cta,
  .careers-cta,
  .contact-cta,
  .about-cta,
  .hp-cta { padding: var(--section-pad-y-sm) var(--section-pad-x-sm); }

  .page-cta__title,
.svc-cta__title,
.sec-cta__title,
  .proj-cta__title,
  .careers-cta__title,
  .contact-cta__title,
  .about-cta__title,
  .hp-cta__title { font-size: 30px; }

  .page-cta__buttons,
.svc-cta__buttons,
.sec-cta__buttons,
  .proj-cta__buttons,
  .careers-cta__buttons,
  .contact-cta__buttons,
  .about-cta__buttons,
  .hp-cta__buttons { flex-direction: column; gap: 14px; }
}

/* Shared page hero (all subpages) */
.page-hero {
  background: var(--color-dark-bg);
  position: relative;
  overflow: hidden;
  padding: 180px var(--section-pad-x) 80px;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.3) 0%, rgba(8, 8, 8, 0.85) 100%);
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero__breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.3);
  transition: color var(--transition-fast);
}

.page-hero__breadcrumb a:hover { color: var(--color-accent); }
.page-hero__breadcrumb span { color: rgba(255, 255, 255, 0.15); }

.page-hero__title {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 300;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 700px;
}

.page-hero__title strong { font-weight: 400; }

.page-hero__desc {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.4);
  max-width: 540px;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .page-hero { padding: 150px var(--section-pad-x-md) 60px; }
  .page-hero__title { font-size: 44px; }
}

@media (max-width: 640px) {
  .page-hero { padding: 130px var(--section-pad-x-sm) 48px; }
  .page-hero__title { font-size: 34px; }
}

/* 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;
}