/* ESS Global Landing Pages - Shared Styles */
/* Brand Colors: Red #f71735, Navy #0b0c26 */

:root {
  --ess-red: #f71735;
  --ess-red-dark: #d01229;
  --ess-navy: #0b0c26;
  --ess-navy-light: #1a1b3a;
  --ess-white: #ffffff;
  --ess-gray-light: #f5f5f7;
  --ess-gray: #8d9297;
  --ess-gray-dark: #4a4a4a;
  --ess-green: #28a745;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ess-gray-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* =========================================================
   HEADER / LOGO BAR
   ========================================================= */

.lp-header {
  background: var(--ess-navy);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.lp-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  height: 80px;
  width: auto;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  transition: color 0.2s;
}

.header-phone:hover {
  color: var(--ess-red);
}

/* =========================================================
   HERO SECTION
   ========================================================= */

.hero {
  background: linear-gradient(135deg, rgba(11,12,38,0.85) 0%, rgba(26,27,58,0.8) 100%),
              url('../shared/images/hero-security.jpg') center/cover no-repeat;
  color: var(--ess-white);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 60px 24px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--ess-red);
  color: white;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--ess-red);
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.hero-phone:hover {
  background: var(--ess-red);
  border-color: var(--ess-red);
}

.hero-phone svg {
  width: 20px;
  height: 20px;
}

/* =========================================================
   FORM CARD (right side of hero)
   ========================================================= */

.form-card {
  background: var(--ess-white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.form-card h2 {
  color: var(--ess-navy);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.form-card .form-subtitle {
  color: var(--ess-gray);
  font-size: 14px;
  margin-bottom: 20px;
}

.form-card .response-time {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* HubSpot form overrides */
.form-card .hs-form-field {
  margin-bottom: 14px;
}

.form-card .hs-form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ess-navy);
  margin-bottom: 4px;
  display: block;
}

.form-card .hs-input {
  width: 100% !important;
  padding: 10px 14px !important;
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  font-size: 15px !important;
  transition: border-color 0.2s !important;
}

.form-card .hs-input:focus {
  border-color: var(--ess-red) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(247, 23, 53, 0.1) !important;
}

.form-card .hs-submit .hs-button {
  width: 100% !important;
  background: var(--ess-red) !important;
  color: white !important;
  border: none !important;
  padding: 14px 24px !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: background 0.2s !important;
}

.form-card .hs-submit .hs-button:hover {
  background: var(--ess-red-dark) !important;
}

/* =========================================================
   TRUST BAR
   ========================================================= */

.trust-bar {
  background: var(--ess-gray-light);
  padding: 24px 0;
  border-bottom: 1px solid #e0e0e0;
}

.trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ess-navy);
}

.trust-item svg {
  width: 24px;
  height: 24px;
  color: var(--ess-red);
  flex-shrink: 0;
}

/* =========================================================
   SERVICES GRID
   ========================================================= */

.services-section {
  padding: 60px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  color: var(--ess-red);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--ess-navy);
  margin-bottom: 12px;
}

.section-desc {
  color: var(--ess-gray);
  font-size: 16px;
  max-width: 600px;
  margin-bottom: 40px;
}

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

.service-card {
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 28px;
  transition: all 0.2s;
}

.service-card:hover {
  border-color: var(--ess-red);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.service-card .icon {
  width: 48px;
  height: 48px;
  background: rgba(247, 23, 53, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.service-card .icon svg {
  width: 24px;
  height: 24px;
  color: var(--ess-red);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ess-navy);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: var(--ess-gray);
  line-height: 1.6;
}

/* =========================================================
   SOCIAL PROOF / TESTIMONIALS
   ========================================================= */

.social-proof {
  background: var(--ess-navy);
  color: white;
  padding: 60px 24px;
}

.social-proof-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 24px;
}

.testimonial-card .stars {
  color: #ffc107;
  font-size: 16px;
  margin-bottom: 12px;
}

.testimonial-card blockquote {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-card .author {
  font-size: 13px;
  font-weight: 600;
  color: var(--ess-red);
}

/* =========================================================
   WHY ESS SECTION
   ========================================================= */

.why-section {
  padding: 60px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.why-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--ess-gray-light);
  border-radius: 10px;
}

.why-item .number {
  width: 40px;
  height: 40px;
  background: var(--ess-red);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.why-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ess-navy);
  margin-bottom: 4px;
}

.why-item p {
  font-size: 14px;
  color: var(--ess-gray);
}

/* =========================================================
   CTA BANNER
   ========================================================= */

.cta-banner {
  background: var(--ess-red);
  color: white;
  padding: 48px 24px;
  text-align: center;
}

.cta-banner h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.cta-banner p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 24px;
}

.cta-banner .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--ess-red);
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-white:hover {
  background: var(--ess-navy);
  color: white;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: white;
  color: var(--ess-red);
}

/* =========================================================
   FOOTER
   ========================================================= */

.lp-footer {
  background: var(--ess-navy);
  color: rgba(255,255,255,0.5);
  padding: 24px;
  text-align: center;
  font-size: 13px;
}

.lp-footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 12px;
  opacity: 0.7;
}

/* =========================================================
   STICKY MOBILE CTA
   ========================================================= */

.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ess-navy);
  padding: 12px 16px;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.mobile-cta-inner {
  display: flex;
  gap: 10px;
}

.mobile-cta a {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.mobile-cta .btn-call {
  background: var(--ess-green);
  color: white;
}

.mobile-cta .btn-quote {
  background: var(--ess-red);
  color: white;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-phone {
    display: none;
  }

  .header-phone {
    font-size: 14px;
  }

  .header-logo {
    height: 56px;
  }

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

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

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

  .trust-bar-inner {
    gap: 20px;
  }

  .trust-item {
    font-size: 12px;
  }

  .mobile-cta {
    display: block;
  }

  body {
    padding-bottom: 70px;
  }

  .cta-banner {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }

  .form-card {
    padding: 24px 20px;
  }
}
