/* ==========================================================================
   COMMERCIAL PAGE — scoped styles
   Loaded only on the "Commercial" page template (see foxsecur_enqueue_assets
   in functions.php). Uses design tokens + shared typography/button classes
   from main.css (--color-*, --font-*, --radius-*, .eyebrow, .h1-hero,
   .hero__desc, .accent, .btn/.btn-outline/.btn-icon, .cta-label/.cta-phone)
   so this page stays visually consistent with the rest of the site without
   duplicating those rules here.

   Table of contents:
   1. Hero
   2. Stats bar
   3. Smarter Security for Business Operations
   4. Why Businesses Choose FoxSecur
   5. Our Commercial Security Solutions
   6. How the Process Works
   7. Business Types We Protect
   ========================================================================== */

/* 1. Hero
   ========================================================================== */
.commercial-hero {
  position: relative;
  background: var(--color-navy);
  overflow: hidden;
}
.commercial-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.commercial-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.9) 35%, rgba(0,26,21,0) 85%);
  z-index: 1;
}
.commercial-hero__glow {
  position: absolute;
  width: 309px;
  height: 309px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234,178,29,0.55) 0%, rgba(234,178,29,0) 70%);
  filter: blur(20px);
  z-index: 1;
  pointer-events: none;
}
.commercial-hero__glow--tr { top: -150px; right: -150px; }
.commercial-hero__glow--bl { bottom: -150px; left: -150px; }

.commercial-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 620px) 1fr;
  align-items: center;
  gap: 40px;
  min-height: 760px;
  padding-block: 160px 100px;
}
.commercial-hero__content { min-width: 0; }
.commercial-hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.commercial-hero__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.commercial-hero__media-backing {
  position: absolute;
  inset: 10px -10px -10px 10px;
  background: rgba(217,217,217,0.1);
  border-radius: 28px;
  z-index: 0;
}
.commercial-hero__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 491px;
  aspect-ratio: 491 / 493;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

@media (max-width: 1024px) {
  .commercial-hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 140px 48px;
    gap: 32px;
  }
  .commercial-hero__media { order: 2; }
  .commercial-hero__media img { max-width: 420px; }
}

@media (max-width: 767px) {
  .commercial-hero__inner { padding-block: 120px 32px; gap: 24px; }
  .commercial-hero__glow { width: 200px; height: 200px; }
}

/* 2. Stats bar
   ========================================================================== */
.commercial-stats {
  background: var(--color-bg-light-blue);
}
.commercial-stats__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding-block: 40px;
}
.commercial-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.commercial-stats__icon { width: 30px; height: 30px; flex: none; }
.commercial-stats__icon svg { width: 100%; height: 100%; }
.commercial-stats__num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  color: var(--color-navy);
}
.commercial-stats__label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-navy);
}
.commercial-stats__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--color-navy);
  flex: none;
}

/* 3. Smarter Security for Business Operations
   ========================================================================== */
.smart-ops__head {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 56px;
}
.smart-ops__head .eyebrow { display: inline-flex; }
.smart-ops__intro { margin-top: 16px; }

.smart-ops__layout {
  display: grid;
  grid-template-columns: 1fr 345px 1fr;
  gap: 40px;
  align-items: center;
}
.smart-ops__col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.smart-ops__feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.smart-ops__icon {
  width: 34px;
  height: 34px;
  flex: none;
  background: var(--color-yellow);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.smart-ops__icon svg { width: 20px; height: 20px; }
.smart-ops__feature h3 {
  font-family: var(--font-alt);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-navy);
  margin-bottom: 4px;
}
.smart-ops__feature p {
  font-family: var(--font-alt);
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-gray-body);
}

.smart-ops__media {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.smart-ops__media img {
  width: 100%;
  aspect-ratio: 345 / 312;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
}

.smart-ops__callout {
  display: flex;
  gap: 20px;
  align-items: center;
  background: #eff6ff;
  border-left: 4px solid var(--color-navy);
  padding: 16px 20px;
  border-radius: 4px;
}
.smart-ops__callout-icon { width: 24px; height: 24px; flex: none; }
.smart-ops__callout p {
  font-family: var(--font-alt);
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-navy);
}

@media (max-width: 1180px) {
  .smart-ops__layout { grid-template-columns: 1fr; gap: 32px; }
  .smart-ops__media { order: -1; max-width: 460px; margin: 0 auto; width: 100%; }
}

@media (max-width: 767px) {
  .commercial-stats__inner { gap: 20px; padding-block: 28px; }
  .commercial-stats__dot { display: none; }
  .smart-ops__head { margin-bottom: 32px; }
  .commercial-solutions__head { margin-bottom: 32px; }
}

/* 4. Why Businesses Choose FoxSecur
   ========================================================================== */
.commercial-why-choose__head {
  text-align: center;
  max-width: 908px;
  margin: 0 auto 48px;
}
.commercial-why-choose__head .eyebrow { display: inline-flex; }
.commercial-why-choose__subline {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  color: var(--color-navy);
  margin-top: 8px;
}
.commercial-why-choose__intro { margin-top: 12px; }

.commercial-why-choose__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.commercial-why-choose-card {
  background: var(--color-white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
}
.commercial-why-choose-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--color-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.commercial-why-choose-card__icon svg { width: 24px; height: 24px; }
.commercial-why-choose-card h3 {
  font-family: var(--font-alt);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-navy);
  margin-bottom: 8px;
}
.commercial-why-choose-card p {
  font-family: var(--font-alt);
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-gray-body);
}

.commercial-why-choose__video {
  position: relative;
  max-width: 890px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}
.commercial-why-choose__video img { width: 100%; aspect-ratio: 890 / 500; object-fit: cover; display: block; }
.commercial-why-choose__video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28,57,142,0.5) 0%, rgba(28,57,142,0) 100%);
}
.commercial-why-choose__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.commercial-why-choose__play svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; }
.commercial-why-choose__play-icon { position: relative; width: 15px; height: 18px; margin-left: 3px; }

@media (max-width: 1180px) {
  .commercial-why-choose__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .commercial-why-choose__grid { grid-template-columns: 1fr; }
}

/* 5. Our Commercial Security Solutions
   ========================================================================== */
.commercial-solutions { background: var(--color-bg-light-blue); }
.commercial-solutions__head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}
.commercial-solutions__head .eyebrow { display: inline-flex; }
.commercial-solutions__intro { margin-top: 16px; }

.commercial-solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.commercial-solutions-card {
  background: var(--color-bg-light-blue);
  border: 1px solid #dbeafe;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(28,57,142,0.08), 0 2px 4px -2px rgba(28,57,142,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.commercial-solutions-card__media {
  position: relative;
  height: 220px;
}
.commercial-solutions-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.commercial-solutions-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,15,46,0.8) 0%, rgba(10,15,46,0.32) 50%, rgba(10,15,46,0) 100%);
}
.commercial-solutions-card__icon {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--color-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.commercial-solutions-card__icon svg { width: 24px; height: 24px; }
.commercial-solutions-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.commercial-solutions-card__body h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-navy);
  margin-bottom: 16px;
}
.commercial-solutions-card__list { flex: 1; }
.commercial-solutions-card__list li {
  position: relative;
  padding-left: 16px;
  font-family: var(--font-alt);
  font-size: 14px;
  color: #4a5568;
  line-height: 1.4;
  margin-bottom: 10px;
}
.commercial-solutions-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-navy);
}
.commercial-solutions-card__list li:last-child { margin-bottom: 0; }

@media (max-width: 1180px) {
  .commercial-solutions__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .commercial-solutions__grid { grid-template-columns: 1fr; }
}

/* 6. How the Process Works
   ========================================================================== */
.commercial-process { position: relative; background: var(--color-navy); overflow: hidden; }
.commercial-process__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.commercial-process__overlay { position: absolute; inset: 0; background: rgba(35,45,100,0.82); z-index: 1; }
.commercial-process__inner { position: relative; z-index: 2; }
.commercial-process__head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.commercial-process__head .eyebrow { display: inline-flex; }

.commercial-process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.commercial-process-card {
  background: rgba(4,11,51,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
}
.commercial-process-card__media { position: relative; height: 165px; }
.commercial-process-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.commercial-process-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0f172b 0%, rgba(15,23,43,0.5) 50%, rgba(15,23,43,0) 100%);
}
.commercial-process-card__icon {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 41px;
  height: 41px;
  border-radius: 50%;
  background: var(--color-yellow);
  box-shadow: 0 8px 13px -2px rgba(0,0,0,0.1), 0 3px 5px -3px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.commercial-process-card__icon svg { width: 20px; height: 20px; }
.commercial-process-card__body { padding: 20px; }
.commercial-process-card__body h3 {
  font-family: var(--font-alt);
  font-weight: 700;
  font-size: 12px;
  color: var(--color-white);
  margin-bottom: 12px;
}
.commercial-process-card__body p {
  font-family: var(--font-alt);
  font-size: 13px;
  line-height: 1.5;
  color: #d1d5dc;
}

@media (max-width: 1180px) {
  .commercial-process__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .commercial-process__grid { grid-template-columns: 1fr; }
}

/* 7. Business Types We Protect
   ========================================================================== */
.business-types__head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}
.business-types__head .eyebrow { display: inline-flex; }
.business-types__intro { margin-top: 16px; }

.business-types__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.business-types-card {
  background: var(--color-white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}
.business-types-card__media { position: relative; height: 189px; }
.business-types-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.business-types-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0f172b 0%, rgba(15,23,43,0.4) 50%, rgba(15,23,43,0) 100%);
}
.business-types-card__label {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}
.business-types-card__icon {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 8px;
  background: var(--color-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.business-types-card__icon svg { width: 17px; height: 17px; }
.business-types-card__label span:last-child {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16.8px;
  color: var(--color-white);
}
.business-types-card__body { padding: 20px 22px; }
.business-types-card__body p {
  font-family: var(--font-alt);
  font-size: 16px;
  line-height: 1.4;
  color: #4a5565;
}

.business-types__cta { text-align: center; }

@media (max-width: 1180px) {
  .business-types__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .business-types__head { margin-bottom: 32px; }
  .business-types__grid { grid-template-columns: 1fr; gap: 20px; margin-bottom: 32px; }
  .business-types-card__media { height: 220px; }
  .business-types-card__label span:last-child { font-size: 15px; }
  .business-types-card__body { padding: 18px 20px; }
}
