/* ==========================================================================
   JRS Security Solutions & Consulting — Main Stylesheet
   Colors: Navy #1B2A4A | Gold #B8860B | White #FFFFFF | Light Gray #F2F4F7
   Text: Dark #1A1A2E | Muted #666666
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #1A1A2E;
  background: #FFFFFF;
}

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

a {
  color: #B8860B;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #8a6408;
}

ul {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: #1B2A4A;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }

p {
  margin-bottom: 1.2em;
  color: #1A1A2E;
}

p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section--gray {
  background: #F2F4F7;
}

.section--navy {
  background: #1B2A4A;
  color: #FFFFFF;
}

.section--navy h1,
.section--navy h2,
.section--navy h3 {
  color: #FFFFFF;
}

.section--navy p {
  color: rgba(255, 255, 255, 0.85);
}

.text-center { text-align: center; }
.text-muted   { color: #666666; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: #B8860B;
  color: #FFFFFF;
  border-color: #B8860B;
}

.btn--primary:hover {
  background: #8a6408;
  border-color: #8a6408;
  color: #FFFFFF;
}

.btn--outline {
  background: transparent;
  color: #B8860B;
  border-color: #B8860B;
}

.btn--outline:hover {
  background: #B8860B;
  color: #FFFFFF;
}

.btn--outline-white {
  background: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.btn--outline-white:hover {
  background: #FFFFFF;
  color: #1B2A4A;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #1B2A4A;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

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

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}

.logo-main {
  font-size: 1.6rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.05em;
}

.logo-sub {
  font-size: 0.6rem;
  font-weight: 600;
  color: #B8860B;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #B8860B;
}

.nav-cta {
  flex-shrink: 0;
}

.nav-cta .btn {
  padding: 10px 20px;
  font-size: 0.8rem;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #FFFFFF;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #142039;
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.mobile-nav.open {
  max-height: 400px;
  padding: 16px 0;
}

.mobile-nav a {
  color: rgba(255,255,255,0.85);
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  display: block;
  border-left: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: #B8860B;
  border-left-color: #B8860B;
}

.mobile-nav .mobile-nav-cta {
  margin: 12px 24px 0;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  background: #1B2A4A;
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}

/* Subtle texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(184,134,11,0.08) 0%, transparent 60%),
    linear-gradient(135deg, #0e1a2e 0%, #1B2A4A 50%, #1e3158 100%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #B8860B;
  margin-bottom: 20px;
}

.hero h1 {
  color: #FFFFFF;
  margin-bottom: 0;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
}

.hero h1 span {
  display: block;
  width: 60px;
  height: 3px;
  background: #B8860B;
  margin-top: 16px;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  max-width: 580px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Feature Boxes
   -------------------------------------------------------------------------- */
.features {
  background: #F2F4F7;
  padding: 56px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-box {
  background: #FFFFFF;
  padding: 36px 28px;
  border-top: 3px solid #B8860B;
  box-shadow: 0 2px 16px rgba(27,42,74,0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  color: #B8860B;
}

.feature-box h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.feature-box p {
  font-size: 0.95rem;
  color: #444;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Body / Content Sections
   -------------------------------------------------------------------------- */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #B8860B;
  margin-bottom: 12px;
  display: block;
}

.section-headline {
  margin-bottom: 28px;
}

.prose {
  max-width: 760px;
}

.prose p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

/* .prose defaults to dark text; force light text when nested in a navy section */
.section--navy .prose p {
  color: rgba(255, 255, 255, 0.85);
}

/* Divider accent */
.gold-rule {
  width: 48px;
  height: 3px;
  background: #B8860B;
  margin-bottom: 28px;
}

/* --------------------------------------------------------------------------
   Homepage — Services Preview Grid
   -------------------------------------------------------------------------- */
.home-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.home-service-card {
  padding: 24px;
  background: #FFFFFF;
  border-left: 3px solid #B8860B;
}

@media (max-width: 900px) {
  .home-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .home-services-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Services Page — Service Cards
   -------------------------------------------------------------------------- */
.services-intro {
  padding: 56px 0 40px;
}

.service-card {
  padding: 48px 0;
  border-bottom: 1px solid #e4e8ef;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 40px;
  align-items: start;
}

.service-card:last-of-type {
  border-bottom: none;
}

.service-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: #e4e8ef;
  line-height: 1;
  user-select: none;
  padding-top: 4px;
}

.service-body h2 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.service-body p {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
}

.services-cta-block {
  background: #1B2A4A;
  padding: 56px 0;
  text-align: center;
}

.services-cta-block p {
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   About Page
   -------------------------------------------------------------------------- */
.about-story {
  padding: 64px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: start;
}

/* About page founder headshot, cropped to frame the full head, hair, and shoulders */
.founder-photo {
  width: 200px;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 0%;
  display: block;
  border: 3px solid #B8860B;
  flex-shrink: 0;
}

.founder-intro {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}

.founder-intro-text {
  padding-top: 4px;
}

.founder-intro-text .section-headline {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .founder-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

.credentials-box {
  background: #F2F4F7;
  padding: 36px 32px;
  border-top: 3px solid #B8860B;
}

.credentials-box h3 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.credentials-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cred-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: #333;
}

.cred-icon {
  width: 20px;
  height: 20px;
  color: #B8860B;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-approach {
  background: #F2F4F7;
  padding: 64px 0;
}

.about-closing {
  padding: 64px 0;
}

/* --------------------------------------------------------------------------
   Service Area Page
   -------------------------------------------------------------------------- */
.area-hero {
  background: #1B2A4A;
  padding: 72px 0;
}

.area-body {
  padding: 64px 0;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 36px 0;
  border: 1px solid #e4e8ef;
}

.city-item {
  padding: 18px 20px;
  border-right: 1px solid #e4e8ef;
  border-bottom: 1px solid #e4e8ef;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1B2A4A;
  transition: background 0.15s;
}

.city-item:hover {
  background: #F2F4F7;
}

.city-item:nth-child(4n) {
  border-right: none;
}

.out-of-area-box {
  background: #F2F4F7;
  border-left: 4px solid #B8860B;
  padding: 28px 32px;
  margin: 40px 0;
}

.out-of-area-box p {
  margin: 0;
  font-size: 1rem;
  color: #444;
}

/* --------------------------------------------------------------------------
   Contact Page
   -------------------------------------------------------------------------- */
.contact-hero {
  background: #1B2A4A;
  padding: 72px 0;
}

.contact-body {
  padding: 64px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: start;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1B2A4A;
  letter-spacing: 0.02em;
}

.form-group label .required {
  color: #B8860B;
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid #d0d5de;
  font-size: 1rem;
  font-family: inherit;
  color: #1A1A2E;
  background: #FFFFFF;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #1B2A4A;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #c0392b;
}

.field-error {
  font-size: 0.8rem;
  color: #c0392b;
  display: none;
}

.field-error.visible {
  display: block;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231B2A4A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-submit .btn {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  background: #1B2A4A;
  border-color: #1B2A4A;
  color: #B8860B;
  letter-spacing: 0.08em;
}

.form-submit .btn:hover {
  background: #142039;
  border-color: #142039;
}

.form-success {
  display: none;
  background: #eaf4ee;
  border: 1.5px solid #27ae60;
  padding: 20px 24px;
  color: #1e7e34;
  font-weight: 500;
  text-align: center;
}

/* Contact sidebar */
.contact-sidebar {
  padding-top: 8px;
}

.contact-info-block {
  background: #F2F4F7;
  padding: 32px 28px;
  margin-bottom: 24px;
  border-top: 3px solid #B8860B;
}

.contact-info-block h3 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: #1B2A4A;
}

.contact-info-block p {
  font-size: 0.95rem;
  color: #444;
  margin: 0;
}

.contact-phone {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1B2A4A;
  display: block;
  margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   Page Hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background: #1B2A4A;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0e1a2e 0%, #1B2A4A 60%, #1e3158 100%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #FFFFFF;
  margin-bottom: 16px;
}

.page-hero h1 span {
  display: block;
  width: 48px;
  height: 3px;
  background: #B8860B;
  margin-top: 14px;
}

.page-hero p {
  color: rgba(255,255,255,0.82);
  max-width: 600px;
  font-size: 1.08rem;
}

/* --------------------------------------------------------------------------
   CTA Band
   -------------------------------------------------------------------------- */
.cta-band {
  background: #F2F4F7;
  padding: 56px 0;
  text-align: center;
  border-top: 3px solid #B8860B;
}

.cta-band h2 {
  margin-bottom: 14px;
}

.cta-band p {
  max-width: 560px;
  margin: 0 auto 28px;
  color: #555;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #1B2A4A;
  color: rgba(255,255,255,0.75);
}

.footer-main {
  padding: 56px 0 40px;
  display: grid;
  grid-template-columns: 2fr 1.5fr 2fr;
  gap: 48px;
  align-items: start;
}

.footer-logo-col .site-logo {
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  letter-spacing: 0.04em;
}

.footer-links h4 {
  color: #FFFFFF;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #B8860B;
}

.footer-contact h4 {
  color: #FFFFFF;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-contact p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 8px;
}

.footer-contact a {
  color: #B8860B;
}

.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
}

.footer-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bar p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Inline SVG Icons utility
   -------------------------------------------------------------------------- */
.icon {
  display: inline-block;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Responsive — Tablet (≤900px)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .service-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-number {
    font-size: 2rem;
    color: #B8860B;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cities-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .city-item:nth-child(4n) {
    border-right: 1px solid #e4e8ef;
  }

  .city-item:nth-child(3n) {
    border-right: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-logo-col {
    grid-column: 1 / -1;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   Responsive — Mobile (≤600px)
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .section { padding: 52px 0; }

  .hero { padding: 64px 0 56px; }

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

  .city-item:nth-child(3n) {
    border-right: 1px solid #e4e8ef;
  }

  .city-item:nth-child(2n) {
    border-right: none;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bar .container {
    flex-direction: column;
    text-align: center;
  }
}
