/* =============================================================================
   RV Security and Logistics — global styles
   Palette: navy base, white text/surfaces, orange accent (SA ops / surveillance)
   ============================================================================= */

:root {
  --color-navy-950: #0a0f1a;
  --color-navy-900: #0d1526;
  --color-navy-800: #121c32;
  --color-navy-700: #1a2744;
  --color-white: #f8fafc;
  --color-muted: #94a3b8;
  --color-gold: #f97316;
  --color-gold-light: #fb923c;
  --color-gold-dark: #c2410c;
  --color-accent-soft: rgba(249, 115, 22, 0.14);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", var(--font-sans);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 0.22s ease;
  --header-h: 240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-muted);
  background: var(--color-navy-950);
  padding-top: var(--header-h);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-gold-light);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--color-white);
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* ---------- Typography ---------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--color-white);
  font-weight: 600;
  line-height: 1.2;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  margin: 0 0 1rem;
}

.section-lead {
  margin: 0;
  max-width: 52ch;
  font-size: 1.05rem;
}

.section-head--center {
  text-align: center;
}

.section-head--center .section-lead {
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: var(--color-navy-950);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  box-shadow: var(--shadow-md);
  color: var(--color-navy-950);
}

.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(248, 250, 252, 0.35);
}

.btn--ghost:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-light);
}

.btn--small {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

.btn--large {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(10, 15, 26, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(249, 115, 22, 0.12);
  transition: background var(--transition), border-color var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

/* Company logo: assets/logo.png (large mark; width capped so nav + CTA still fit) */
.logo {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(1160px, 62%);
  line-height: 0;
}

.logo__img {
  display: block;
  height: auto;
  max-height: 192px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  transition: opacity var(--transition);
}

@media (max-width: 880px) {
  .logo {
    max-width: calc(100% - 3.5rem);
  }
}

.logo:hover .logo__img {
  opacity: 0.92;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 0.75rem;
  line-height: 0;
}

.logo__img--footer {
  max-height: 192px;
  max-width: 1040px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--color-muted);
  font-weight: 500;
  font-size: 0.92rem;
}

.nav-list a:hover {
  color: var(--color-white);
}

.nav-cta {
  flex-shrink: 0;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: flex;
    z-index: 1002;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 1.5rem;
    background: var(--color-navy-900);
    border-bottom: 1px solid rgba(249, 115, 22, 0.15);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 1rem;
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid rgba(248, 250, 252, 0.06);
  }

  .nav-list a {
    display: block;
    padding: 0.85rem 0;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

/* Hero: layered gradient + subtle grid/noise for premium security feel */
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(10, 15, 26, 0.92) 0%, rgba(13, 21, 38, 0.88) 45%, rgba(18, 28, 50, 0.95) 100%),
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(249, 115, 22, 0.15) 0%, transparent 55%),
    linear-gradient(rgba(248, 250, 252, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 250, 252, 0.03) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-color: var(--color-navy-900);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 1rem;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin: 0 0 1.25rem;
  letter-spacing: -0.03em;
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin: 0 0 2rem;
  max-width: 58ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Sections (shared) ---------- */
.section {
  padding: 5rem 0;
}

.section--about {
  background: var(--color-navy-900);
  border-top: 1px solid rgba(249, 115, 22, 0.08);
}

.section--services {
  background: linear-gradient(180deg, var(--color-navy-950) 0%, var(--color-navy-800) 100%);
}

.section--why {
  background: var(--color-navy-900);
}

.section--industries {
  background: var(--color-navy-950);
  border-top: 1px solid rgba(249, 115, 22, 0.08);
}

.section--contact {
  background: var(--color-navy-800);
  padding-bottom: 5.5rem;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-copy p {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
}

.about-highlights {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.about-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  color: var(--color-white);
  font-weight: 500;
}

.icon-check {
  flex-shrink: 0;
  color: var(--color-gold);
  margin-top: 2px;
}

.about-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-card {
  padding: 1.25rem 1.35rem;
  background: var(--color-navy-800);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.stat-card:hover {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold-light);
  margin-bottom: 0.35rem;
}

.stat-card__label {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* ---------- Cards (services & why) ---------- */
.cards {
  display: grid;
  gap: 1.25rem;
}

.cards--services {
  grid-template-columns: repeat(3, 1fr);
}

.cards--why {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 960px) {
  .cards--services,
  .cards--why {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .cards--services,
  .cards--why {
    grid-template-columns: 1fr;
  }
}

.card {
  padding: 1.5rem 1.5rem 1.6rem;
  background: var(--color-navy-800);
  border: 1px solid rgba(248, 250, 252, 0.06);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: rgba(249, 115, 22, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-gold);
  background: var(--color-accent-soft);
  border-radius: var(--radius);
}

.card__title {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.card__text {
  margin: 0;
  font-size: 0.95rem;
}

.card__text em {
  display: block;
  font-style: normal;
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
}

/* ---------- Industries ---------- */
.industry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.industry-pill {
  padding: 0.65rem 1.15rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-white);
  background: var(--color-navy-800);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 999px;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.industry-pill:hover {
  background: var(--color-accent-soft);
  border-color: var(--color-gold);
  color: var(--color-gold-light);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  padding: 3rem 0;
  background: linear-gradient(90deg, var(--color-navy-700) 0%, var(--color-navy-900) 50%, var(--color-navy-800) 100%);
  border-top: 1px solid rgba(249, 115, 22, 0.25);
  border-bottom: 1px solid rgba(249, 115, 22, 0.15);
}

.cta-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-banner__title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0 0 0.5rem;
}

.cta-banner__text {
  margin: 0;
  max-width: 560px;
  color: var(--color-muted);
}

.cta-banner__text + .cta-banner__text {
  margin-top: 0.65rem;
}

.cta-banner__text--lead {
  font-size: 1.05rem;
  color: var(--color-white);
  font-weight: 500;
}

.cta-banner__inner--stack {
  flex-direction: column;
  align-items: flex-start;
}

.cta-banner__inner--stack .btn {
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-details__title {
  font-size: 1rem;
  margin: 2rem 0 0.75rem;
  color: var(--color-gold-light);
}

.contact-address {
  font-style: normal;
  font-size: 0.95rem;
}

.contact-address p {
  margin: 0 0 0.5rem;
}

.contact-address a {
  color: var(--color-white);
}

.contact-address a:hover {
  color: var(--color-gold-light);
}

.contact-form {
  padding: 2rem;
  background: var(--color-navy-900);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-row {
  margin-bottom: 1.15rem;
}

.form-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 520px) {
  .form-row--half {
    grid-template-columns: 1fr;
  }
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-white);
  background: var(--color-navy-800);
  border: 1px solid rgba(248, 250, 252, 0.12);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-note--hint {
  color: var(--color-muted);
  line-height: 1.5;
}

.form-note--hint strong {
  color: var(--color-white);
  font-weight: 600;
}

.form-note.is-success {
  color: var(--color-gold-light);
}

.form-note.is-error {
  color: #f87171;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy-950);
  border-top: 1px solid rgba(249, 115, 22, 0.12);
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}


.footer-tagline {
  margin: 0;
  font-size: 0.95rem;
  max-width: 36ch;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 1rem;
}

.footer-links ul,
.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li,
.social-list li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.social-list a {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.footer-links a:hover,
.social-list a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(248, 250, 252, 0.06);
  padding: 1.25rem 0;
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.copyright {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.footer-back {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.footer-back:hover {
  color: var(--color-gold-light);
}
