/* ================================================================
   DBC SECURITIES — MAIN STYLES
   01. Foundations       05. Gallery
   02. Header & hero     06. Contact & footer
   03. Content sections  07. Dialogs & quick actions
   04. Services          08. Responsive layouts
   ================================================================ */

/* 01. FOUNDATIONS */
:root {
  --navy: #10294f;
  --navy-deep: #0a1d3a;
  --blue: #1262ae;
  --gold: #d5ad58;
  --gold-hover: #c69c43;
  --ink: #102a48;
  --muted: #566a80;
  --line: #dfe7ef;
  --surface: #f4f7fb;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(12, 38, 67, 0.12);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  color: var(--white);
  font-size: clamp(3rem, 6vw, 6.2rem);
  font-weight: 760;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 4.4vw, 4.25rem);
  font-weight: 740;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

p {
  color: var(--muted);
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--white);
  background: var(--navy);
  border-radius: 6px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 2px;
  background: var(--gold);
  content: "";
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.76);
}

.eyebrow--gold {
  color: var(--gold);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.text-link:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(239, 197, 72, 0.7);
  outline-offset: 3px;
}

.button--small {
  min-height: 40px;
  padding-inline: 20px;
  font-size: 0.78rem;
}

.button--gold {
  color: var(--navy-deep);
  background: var(--gold);
  border-color: var(--gold);
}

.button--gold:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
}

.button--outline {
  color: var(--navy);
  background: transparent;
  border-color: #9fb0c2;
}

.button--light {
  color: var(--navy);
  background: var(--white);
  border-color: var(--white);
}

/* 02. HEADER & HERO */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(8, 46, 84, 0.09);
  backdrop-filter: blur(12px);
}

.topbar {
  color: var(--white);
  background: var(--navy);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  font-size: 0.63rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topbar-inner div {
  display: flex;
  gap: 26px;
}

.topbar a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  text-transform: none;
}

.topbar a:hover {
  color: var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand strong {
  color: var(--navy);
  font-size: 1.16rem;
  letter-spacing: 0.02em;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.1vw, 32px);
  margin-inline: auto;
}

.primary-nav a {
  position: relative;
  color: #344861;
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
  transition: transform 180ms ease, opacity 180ms ease;
}

.search-toggle {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-right: 10px;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.search-toggle:hover {
  background: var(--surface);
}

.search-toggle svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background-color: var(--navy);
  background-image: linear-gradient(90deg, rgba(10, 29, 58, 0.98) 0%, rgba(10, 29, 58, 0.88) 34%, rgba(10, 29, 58, 0.34) 62%, rgba(10, 29, 58, 0.04) 100%), url("../images/services/security-vest.png");
  background-position: center;
  background-size: cover;
}

.hero-inner {
  display: flex;
  align-items: center;
  min-height: 660px;
  padding-block: 84px;
}

.hero-copy {
  max-width: 650px;
}

.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(3.5rem, 6.3vw, 6.4rem);
}

.hero-subtitle {
  margin-bottom: 14px;
  color: var(--white);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 750;
}

.hero-intro {
  max-width: 520px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.office-location {
  padding-top: 96px;
  overflow: hidden;
  background: var(--surface);
}

.location-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 64px;
  align-items: end;
  padding-bottom: 42px;
}

.location-heading h2 {
  max-width: 740px;
  margin-bottom: 0;
}

.location-heading > p {
  max-width: 420px;
  margin-bottom: 8px;
}

.location-split {
  display: grid;
  grid-template-columns: minmax(300px, 32%) minmax(0, 68%);
  min-height: 500px;
  padding: 12px;
  gap: 12px;
  background: var(--white);
}

.location-map,
.location-photo {
  position: relative;
  min-height: 500px;
  margin: 0;
  overflow: hidden;
  background: #dfe7ef;
}

.location-map {
  border: 3px solid var(--navy);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(10, 29, 58, 0.18);
}

.location-photo {
  border-radius: 10px;
}

.location-map iframe,
.location-photo img {
  width: 100%;
  height: 100%;
  border: 0;
}

.location-photo img {
  object-fit: cover;
}

.location-map-link {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  color: var(--white);
  background: var(--navy);
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(10, 29, 58, 0.24);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.location-map-link:hover {
  background: var(--blue);
}

.location-photo figcaption {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  max-width: 520px;
  padding: 24px 26px;
  color: var(--white);
  background: rgba(10, 29, 58, 0.94);
  border-left: 4px solid var(--gold);
  box-shadow: 0 20px 50px rgba(10, 29, 58, 0.28);
}

.location-photo figcaption span {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
  font-weight: 800;
}

.location-photo address {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  font-style: normal;
}

.location-photo small {
  display: block;
  margin-top: 12px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
}

.text-link {
  padding: 8px 0;
  background: transparent;
  border: 0;
  font-weight: 750;
  cursor: pointer;
}

.text-link span {
  display: inline-block;
  margin-left: 7px;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.text-link--light {
  color: var(--white);
}

/* 03. CONTENT SECTIONS */
.stats {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 122px;
}

.stats article {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 48px;
  border-left: 1px solid var(--line);
}

.stats article:last-child {
  border-right: 1px solid var(--line);
}

.stats strong {
  display: inline-block;
  min-width: 4ch;
  color: var(--navy);
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stats strong.is-counting {
  animation: stat-pulse 500ms ease-in-out infinite alternate;
}

@keyframes stat-pulse {
  from {
    opacity: 0.55;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 620;
}

.section {
  padding: 112px 0;
}

.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(380px, 1fr);
  gap: 88px;
  align-items: center;
}

.about-lead {
  max-width: 650px;
  font-size: 1.05rem;
}

.about-cards {
  display: grid;
  gap: 14px;
}

.about-cards article {
  padding: 28px;
  background: var(--surface);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.about-cards span {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.about-cards h3 {
  margin: 0;
  font-size: 1.3rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 54px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-heading p {
  max-width: 420px;
}

/* 04. SERVICES */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.service-card {
  display: flex;
  gap: 20px;
  min-height: 175px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.service-card:hover {
  background: var(--white);
  border-color: #cbd7e3;
  transform: translateY(-3px);
}

.service-card p {
  margin: 0;
  font-size: 0.9rem;
}

.icon-tile {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
}

.icon-tile svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sector-grid span {
  display: block;
  margin-bottom: 32px;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.sector-band {
  padding: 92px 0 100px;
  color: var(--white);
  background: var(--navy);
}

.sector-band h2 {
  margin-bottom: 52px;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.sector-grid article {
  min-height: 205px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.sector-grid span {
  margin-bottom: 32px;
  color: var(--gold);
}

.sector-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
}

/* 05. GALLERY */
.team {
  overflow: hidden;
}

.section-heading--row {
  align-items: end;
}

.carousel {
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 560ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.team-slide {
  flex: 0 0 calc((100% - 32px) / 3);
  height: 440px;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border-radius: 10px;
}

.team-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  transition: transform 400ms ease;
}

.team-slide:hover img {
  transform: scale(1.025);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  background: #c6d0da;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.carousel-dot.is-active {
  width: 26px;
  background: var(--navy);
  border-radius: 999px;
}

.carousel-buttons {
  display: flex;
  gap: 8px;
}

.carousel-button {
  width: 44px;
  height: 44px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid #bfcbd7;
  border-radius: 50%;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.carousel-button:hover {
  color: var(--white);
  background: var(--navy);
}

/* 06. CONTACT & FOOTER */
.contact-band {
  color: var(--white);
  background: var(--navy-deep);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 330px;
  padding-block: 65px;
}

.contact-inner h2 {
  max-width: 700px;
  margin-bottom: 16px;
}

.contact-inner p:not(.eyebrow) {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

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

.contact-phone-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.contact-phone-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 15px 17px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  text-decoration: none;
}

.contact-phone-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold);
}

.contact-phone-list span {
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact-actions a {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  text-underline-offset: 5px;
}

.contact-actions address {
  max-width: 470px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  font-style: normal;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  padding: 58px 0 34px;
  background: linear-gradient(135deg, #03162f 0%, #09284d 100%);
  border-top: 4px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 190px minmax(220px, 1fr) minmax(250px, auto);
  gap: 36px;
  align-items: start;
}

.brand--footer,
.brand--footer strong {
  color: var(--white);
}

.brand--footer small {
  color: rgba(255, 255, 255, 0.55);
}

.footer-grid > p {
  max-width: 440px;
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-business-details {
  display: grid;
  gap: 4px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.77rem;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.footer-business-details strong {
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-business-details a {
  color: var(--white);
  font-weight: 700;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 4px;
}

.footer-grid .copyright {
  grid-column: 1 / -1;
  max-width: none;
}

/* 07. DIALOGS & QUICK ACTIONS */
.contact-dialog,
.search-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 42px;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 40px 100px rgba(0, 15, 35, 0.4);
}

.contact-dialog::backdrop,
.search-dialog::backdrop {
  background: rgba(3, 22, 47, 0.78);
  backdrop-filter: blur(5px);
}

.search-dialog {
  width: min(640px, calc(100% - 32px));
}

.search-dialog h2 {
  margin-bottom: 28px;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.search-field input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #cad6e1;
  border-radius: 8px;
}

.search-results {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.search-result {
  display: block;
  padding: 13px 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  text-decoration: none;
}

.search-result:hover {
  background: var(--surface);
  border-color: #b9c8d7;
}

.search-result strong,
.search-result span {
  display: block;
}

.search-result span,
.search-empty {
  color: var(--muted);
  font-size: 0.8rem;
}

.quick-actions {
  position: fixed;
  top: 48%;
  right: 0;
  z-index: 90;
  display: grid;
  width: 148px;
  overflow: hidden;
  border-radius: 10px 0 0 10px;
  transform: translate(0, -50%);
}

.quick-actions a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 22px rgba(4, 29, 61, 0.2);
  text-decoration: none;
  white-space: nowrap;
  transition: background 180ms ease;
}

.quick-actions a:hover,
.quick-actions a:focus-visible {
  background: var(--blue);
}

.quick-actions a:last-child {
  border-bottom: 0;
}

.quick-actions .quick-actions__whatsapp {
  background: #188a56;
}

.quick-actions svg {
  flex: 0 0 auto;
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.quick-actions span {
  font-size: 0.75rem;
  font-weight: 750;
}

.legal-main {
  min-height: 65vh;
  padding: 90px 0;
  background: var(--surface);
}

.legal-page .header-cta {
  margin-left: auto;
}

.legal-card {
  max-width: 860px;
  padding: clamp(28px, 6vw, 64px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  color: var(--ink);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.legal-card h2 {
  margin-top: 36px;
  font-size: 1.5rem;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-copy {
  max-width: 560px;
  margin-bottom: 30px;
}

.dialog-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.dialog-copy p:last-child {
  margin-bottom: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-grid label {
  display: grid;
  gap: 7px;
  color: #31445a;
  font-size: 0.76rem;
  font-weight: 750;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #cad6e1;
  border-radius: 7px;
  font-size: 0.9rem;
}

.form-grid input {
  height: 48px;
}

.form-grid textarea {
  resize: vertical;
}

.form-span {
  grid-column: 1 / -1;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
}

.form-footer p {
  margin: 0;
  font-size: 0.72rem;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  max-width: 360px;
  padding: 14px 18px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 08. RESPONSIVE LAYOUTS */
@media (max-width: 980px) {
  .header-cta {
    margin-left: auto;
    margin-right: 8px;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .primary-nav {
    position: absolute;
    top: 102px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(6, 40, 80, 0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero,
  .hero-inner {
    min-height: 600px;
  }

  .hero {
    background-position: 58% center;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .location-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sector-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-slide {
    flex-basis: calc((100% - 16px) / 2);
  }

  .footer-grid {
    grid-template-columns: 200px 1fr;
  }

  .footer-links {
    grid-column: 1 / -1;
  }

  .footer-business-details {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    min-height: 28px;
    font-size: 0.56rem;
  }

  .topbar-inner > span,
  .topbar-inner a:last-child {
    display: none;
  }

  .topbar-inner div {
    width: 100%;
    justify-content: center;
  }

  .header-inner {
    min-height: 64px;
  }

  .primary-nav {
    top: 92px;
  }

  .container {
    width: min(100% - 32px, 1160px);
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  h2 {
    font-size: clamp(2.1rem, 10vw, 3.2rem);
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand span {
    display: none;
  }

  .header-cta {
    min-height: 38px;
    padding-inline: 14px;
    font-size: 0.7rem;
  }

  .search-toggle {
    margin-right: 2px;
  }

  .hero,
  .hero-inner {
    min-height: 600px;
  }

  .hero {
    background-image: linear-gradient(90deg, rgba(10, 29, 58, 0.98) 0%, rgba(10, 29, 58, 0.88) 55%, rgba(10, 29, 58, 0.32) 100%), url("../images/services/security-vest.png");
    background-position: 61% center;
  }

  .hero-inner {
    align-items: flex-end;
    padding-block: 72px;
  }

  .hero h1 {
    max-width: 360px;
    font-size: clamp(3rem, 14vw, 4.2rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    min-height: 100px;
  }

  .stats article {
    min-height: 100px;
    padding: 14px 10px;
    border-left: 1px solid var(--line);
    border-bottom: 0;
  }

  .stats article:last-child {
    border-right: 1px solid var(--line);
  }

  .stats strong {
    font-size: 1.4rem;
  }

  .stats span {
    font-size: 0.62rem;
  }

  .section {
    padding: 82px 0;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .service-grid,
  .sector-grid,
  .contact-inner,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: 38px;
  }

  .service-card {
    min-height: auto;
  }

  .sector-band {
    padding: 78px 0;
  }

  .office-location {
    padding-top: 72px;
  }

  .location-heading {
    padding-bottom: 30px;
  }

  .location-split {
    grid-template-columns: 1fr;
    padding: 8px;
    gap: 8px;
  }

  .location-map {
    min-height: 280px;
  }

  .location-photo {
    min-height: 460px;
  }

  .sector-grid article {
    min-height: 180px;
  }

  .team-slide {
    flex-basis: calc((100% - 16px) / 2);
    height: 360px;
  }

  .contact-inner {
    gap: 22px;
  }

  .contact-phone-list {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .brand--footer span {
    display: flex;
  }

  .footer-links,
  .footer-grid .copyright,
  .footer-business-details {
    grid-column: 1;
  }

  .contact-dialog {
    padding: 36px 22px 24px;
  }

  .search-dialog {
    padding: 36px 22px 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-span {
    grid-column: 1;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-actions {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: repeat(3, 1fr);
    width: auto;
    overflow: hidden;
    border-radius: 999px;
    transform: none;
  }

  .quick-actions:hover,
  .quick-actions:focus-within {
    transform: none;
  }

  .quick-actions a,
  .quick-actions a:hover,
  .quick-actions a:focus-visible {
    justify-content: center;
    width: auto;
    min-height: 52px;
    padding: 0 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 0;
  }

  .quick-actions a:last-child {
    border-right: 0;
  }

  .quick-actions span {
    font-size: 0.68rem;
  }

  .site-footer {
    padding-bottom: 100px;
  }
}

@media (max-width: 480px) {
  .location-map {
    min-height: 250px;
  }

  .location-photo {
    min-height: 400px;
  }

  .location-photo figcaption {
    right: 16px;
    bottom: 16px;
    left: 16px;
    padding: 20px;
  }

  .location-map-link {
    right: 16px;
    bottom: 16px;
  }

  .team-slide {
    flex-basis: 100%;
    height: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
