/* ==========================================================================
   Guardian Security Team — v1 stylesheet
   Brand spec source: Phase 1 (locked 22 Sep 2026) — see project doc §4
   ========================================================================== */

:root {
  /* Palette — locked */
  --rust-deep: #9B3D1B;
  --ember: #C1502D;
  --amber: #E2854B;
  --cream: #F7EFE3;
  --rust-text: #7A2E12;
  --amber-text: #EDA06B;
  --ember-light-text: #D66A3E;
  --ivory: #F5F3EE;
  --charcoal: #17110D;
  --warm-neutral: #9C7A62;

  /* Semantic aliases */
  --surface-light: var(--ivory);
  --surface-dark: var(--charcoal);
  --text-on-light: var(--charcoal);
  --text-on-dark: var(--ivory);
  --accent: var(--ember);
  --accent-hover: var(--rust-deep);

  /* Type */
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1180px;
  --gutter: 24px;
  --radius: 4px;
  --radius-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--surface-light);
  color: var(--text-on-light);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--rust-text);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: 0.06em; }
h4 { font-size: 0.95rem; font-weight: 500; letter-spacing: 0.08em; color: var(--ember); }

p { margin: 0 0 1em; }
a { color: var(--ember); text-decoration: none; }
a:hover { color: var(--rust-deep); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--dark {
  background: var(--surface-dark);
  color: var(--text-on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--amber-text); }
.section--dark p, .section--dark li { color: var(--ivory); }
.section--cream { background: var(--cream); }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--ember);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.6em;
}
.section--dark .eyebrow { color: var(--ember-light-text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary {
  background: var(--ember);
  color: var(--ivory);
}
.btn--primary:hover { background: var(--rust-deep); color: var(--ivory); }
.btn--outline {
  background: transparent;
  border-color: var(--ember);
  color: var(--rust-text);
}
.btn--outline:hover { background: var(--ember); color: var(--ivory); }
.section--dark .btn--outline { border-color: var(--amber); color: var(--amber-text); }
.section--dark .btn--outline:hover { background: var(--amber); color: var(--charcoal); }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-dark);
  border-bottom: 1px solid rgba(226, 133, 75, 0.25);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ivory);
}
.brand__mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand__word {
  font-family: var(--font-display);
  line-height: 1.05;
}
.brand__word strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--amber-text);
}
.brand__word span {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ember-light-text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__list {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.nav__list a {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--ivory);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav__list a:hover,
.nav__list a[aria-current="page"] {
  color: var(--amber-text);
  border-bottom-color: var(--ember);
}
.nav__cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle__bar {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--amber-text);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--surface-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px var(--gutter);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    height: calc(100vh - 84px);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; }
  .nav__list { flex-direction: column; gap: 18px; width: 100%; }
  .nav__cta { width: 100%; }
  .nav__cta .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--surface-dark);
  color: var(--ivory);
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(193, 80, 45, 0.22), transparent 60%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--ivory); }
.hero p.lede {
  font-size: 1.1rem;
  color: var(--warm-neutral);
  max-width: 46ch;
}
.hero__actions { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.hero__visual {
  aspect-ratio: 4 / 3;
}
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
}

/* Real photography frame */
.img-frame {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(226, 133, 75, 0.3);
  box-shadow: 0 18px 36px -18px rgba(23, 17, 13, 0.45);
  position: relative;
}
.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(247, 239, 227, 0.06);
  pointer-events: none;
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.img-frame:hover img { transform: scale(1.04); }

/* Image placeholder block (swap for AI/real photography — see IMAGE-STYLE-GUIDE.md) */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  background:
    linear-gradient(135deg, rgba(226,133,75,0.35), transparent 55%),
    linear-gradient(315deg, rgba(155,61,27,0.55), transparent 55%),
    var(--charcoal);
  border: 1px solid rgba(226, 133, 75, 0.3);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--warm-neutral);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   Grids / cards
   ========================================================================== */
.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 960px) {
  .grid--3, .grid--5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--3, .grid--2, .grid--5 { grid-template-columns: 1fr; }
}

.card {
  background: var(--ivory);
  border: 1px solid rgba(155, 61, 27, 0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 10px 24px -16px rgba(23, 17, 13, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -16px rgba(23, 17, 13, 0.35);
}
.card--dark {
  background: rgba(247, 239, 227, 0.04);
  border: 1px solid rgba(226, 133, 75, 0.22);
}
.card--dark:hover {
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.5);
}
.card__icon {
  width: 40px; height: 40px;
  margin-bottom: 16px;
  color: var(--ember);
}

/* Image-topped service card (used on Home) */
.service-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ivory);
  border: 1px solid rgba(155, 61, 27, 0.12);
  box-shadow: 0 10px 24px -16px rgba(23, 17, 13, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.service-card p { color: var(--text-on-light); }
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -16px rgba(23, 17, 13, 0.4);
}
.service-card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.service-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.service-card:hover .service-card__img img { transform: scale(1.05); }
.service-card__body { padding: 20px 22px 24px; }
.service-card__body h3 { margin-bottom: 8px; }
.service-card__body p { margin: 0; font-size: 0.95rem; }

/* Full-bleed photo band with caption (breaks up text-heavy sections) */
.photo-band {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.photo-band img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,17,13,0.25), rgba(23,17,13,0.8));
}
.photo-band__caption {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.photo-band__caption .container { max-width: 720px; }
.photo-band__caption h2 { color: var(--ivory); margin-bottom: 8px; }
.photo-band__caption p { color: var(--cream); margin: 0; }
@media (max-width: 620px) {
  .photo-band { height: 320px; }
}

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(155, 61, 27, 0.12);
}
.section--dark .checklist li { border-bottom-color: rgba(226, 133, 75, 0.18); }
.checklist li:last-child { border-bottom: none; }
.checklist__mark {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--ember);
}

.stat-row {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.stat-row .stat { min-width: 140px; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--amber-text);
}
.stat span {
  font-size: 0.85rem;
  color: var(--warm-neutral);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.notice {
  border-left: 3px solid var(--ember);
  background: rgba(226, 133, 75, 0.08);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.92rem;
}

/* ==========================================================================
   Contact form
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--warm-neutral);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(226, 133, 75, 0.35);
  background: rgba(247, 239, 227, 0.04);
  color: var(--ivory);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(245,243,238,0.4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--amber);
}

.contact-numbers { display: flex; gap: 24px; flex-wrap: wrap; margin: 24px 0; }
.contact-numbers a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--amber-text);
  border: 1px solid rgba(226,133,75,0.4);
  padding: 14px 22px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.contact-numbers a:hover { background: rgba(226,133,75,0.12); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--charcoal);
  color: var(--warm-neutral);
  padding: 56px 0 28px;
  font-size: 0.92rem;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.site-footer h4 { color: var(--amber-text); margin-bottom: 1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--warm-neutral); }
.site-footer a:hover { color: var(--amber-text); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(226, 133, 75, 0.15);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 720px) {
  .site-footer .container { grid-template-columns: 1fr; }
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--rust-deep), var(--ember));
  color: var(--ivory);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: var(--ivory); }
.cta-band p { color: var(--cream); max-width: 60ch; margin: 0 auto 24px; }
.cta-band .btn--outline { border-color: var(--ivory); color: var(--ivory); }
.cta-band .btn--outline:hover { background: var(--ivory); color: var(--rust-deep); }

.page-hero {
  background: var(--surface-dark);
  color: var(--ivory);
  padding: 64px 0;
}
.page-hero h1 { color: var(--ivory); }
.page-hero p { color: var(--warm-neutral); max-width: 60ch; }

.badge-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(226,133,75,0.4);
  color: var(--amber-text);
  padding: 6px 12px;
  border-radius: 999px;
}
