/*
Theme Name: Irongate
Theme URI: https://irongatesecurityservicesltd.com
Author: Judicator
Description: Bespoke dark theme for Irongate Security Services Ltd. Built on the company brand kit: onyx, gold, ivory.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Text Domain: irongate
*/

/* ── Fonts (self-hosted Outfit) ───────────────────────────────────── */
@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/outfit-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/outfit-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/outfit-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/outfit-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/outfit-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ────────────────────────────────────────────────────────── */
:root {
  --bg: #0e0d0b;
  --surface: #171512;
  --surface-2: #1f1c17;
  --line: #2c2820;
  --line-strong: #3d3729;
  --text: #f3f0ea;
  --muted: #a49c8f;
  --faint: #6f6a5f;
  --gold: #c6a35a;
  --gold-bright: #d9b874;
  --gold-dim: rgba(198, 163, 90, 0.13);
  --radius: 2px;
  --font: "Outfit", -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-bright);
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p {
  margin: 0;
}

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

@media (min-width: 768px) {
  .container {
    padding: 0 48px;
  }
}

::selection {
  background: var(--gold);
  color: #1d1810;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ── Buttons (one shape, one intent label) ─────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

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

.btn-gold {
  background: var(--gold);
  color: #1d1810;
}

.btn-gold:hover {
  background: var(--gold-bright);
  color: #1d1810;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* ── Header ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 13, 11, 0.92);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand-logo img {
  height: 34px;
  width: auto;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav .btn {
  margin-left: 8px;
}

@media (max-width: 767px) {
  .nav-toggle-label {
    display: block;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
  }

  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle-label span {
    top: 19px;
  }

  .nav-toggle-label span::before {
    top: -7px;
    left: 0;
    right: 0;
  }

  .nav-toggle-label span::after {
    top: 7px;
    left: 0;
    right: 0;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
    display: none;
  }

  .nav-toggle:checked ~ .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .site-nav li {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav li:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .site-nav .btn {
    margin: 8px 0 0;
  }
}

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  min-height: calc(100dvh - 72px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 78% 30%, rgba(198, 163, 90, 0.07), transparent 70%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0 72px;
  width: 100%;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  font-weight: 800;
  max-width: 14ch;
}

.hero .sub {
  margin-top: 24px;
  color: var(--muted);
  font-size: 17px;
  max-width: 46ch;
}

.hero-ctas {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-figure {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
}

.hero-figure img {
  width: 100%;
}

.hero-figure .fig-caption {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-figure {
    order: -1;
    max-width: 320px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow,
  .hero h1,
  .hero .sub,
  .hero-ctas {
    animation: rise 0.7s ease both;
  }

  .hero h1 {
    animation-delay: 0.06s;
  }

  .hero .sub {
    animation-delay: 0.12s;
  }

  .hero-ctas {
    animation-delay: 0.18s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ── Sections ──────────────────────────────────────────────────────── */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  max-width: 24ch;
}

.section-head .lede {
  margin-top: 16px;
  color: var(--muted);
  max-width: 62ch;
}

/* ── Services bento ────────────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
}

.bento-cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  transition: border-color 0.2s ease;
}

.bento-cell:hover {
  border-color: var(--line-strong);
}

.bento-cell.tall {
  grid-row: span 2;
}

.cell-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cell-body {
  color: var(--muted);
  font-size: 15px;
  max-width: 52ch;
}

.cell-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.k9-art {
  align-self: flex-end;
  width: 120px;
  opacity: 0.9;
  margin-top: 12px;
}

@media (max-width: 767px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .bento-cell.tall {
    grid-row: auto;
  }
}

/* ── Coverage list ─────────────────────────────────────────────────── */
.coverage-list {
  border-top: 1px solid var(--line-strong);
}

.coverage-row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 32px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.coverage-row .city {
  font-size: 22px;
  font-weight: 700;
}

.coverage-row .role {
  display: block;
  color: var(--faint);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 6px;
}

.coverage-row .addr {
  color: var(--muted);
  font-size: 15px;
}

.coverage-row .phone {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .coverage-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ── About split ───────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 48px 36px;
  text-align: center;
}

.about-figure img {
  margin: 0 auto;
  max-height: 160px;
  width: auto;
}

.about-copy h2 {
  max-width: 20ch;
}

.about-copy > p {
  margin-top: 20px;
  color: var(--muted);
  max-width: 60ch;
}

.cap-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
}

.cap-list li {
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 20px;
  margin-bottom: 18px;
  font-size: 15px;
  color: var(--text);
}

.cap-list li span {
  display: block;
  color: var(--faint);
  font-size: 13.5px;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ── Contact band ──────────────────────────────────────────────────── */
.contact-band {
  background: var(--surface-2);
  border-top: 1px solid var(--gold);
  padding: 96px 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.contact-inner h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  max-width: 18ch;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.contact-line {
  color: var(--muted);
  font-size: 15px;
}

.contact-line a {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 900px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.footer-grid h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}

.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 18px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  max-width: 40ch;
}

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

.footer-grid li {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.footer-grid li a {
  color: var(--text);
}

.footer-grid li a:hover {
  color: var(--gold-bright);
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 13px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ── Fallback content pages ────────────────────────────────────────── */
.page-content {
  padding: 72px 0 96px;
  max-width: 760px;
}

.page-content h1 {
  margin-bottom: 24px;
}

.page-content p {
  color: var(--muted);
  margin-bottom: 16px;
}
