/*
 * Homepage sections styles.
 *
 * Moved here from the homepage post_content on 2026-10-27.
 *
 * The styles lived inside the page as <style> blocks in an HTML block. Any save of
 * the page through a context without unfiltered_html (an API tool, a CLI script, a
 * non-admin editor) strips those tags via kses, which publishes the raw CSS as
 * visible text and silently disables the styles. This happened once, on 2026-10-26
 * 00:03, and took the WHY-CHOOSE-US icons with it.
 *
 * Styles and content are now separated: this file is enqueued only on the front
 * page, and the page content holds no CSS.
 */

/* ---- block 1 ---- */
.longtop-category-grid-section {
  width: 100%;
  padding: 0px 0% 70px;
  box-sizing: border-box;
  background: #ffffff;
}

.longtop-category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin: 0 auto;
}

.longtop-category-card {
  display: block;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #111827;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.longtop-category-card:hover {
  transform: translateY(-4px);
  border-color: #dc2626;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.longtop-category-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5f7fa;
}

.longtop-category-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.longtop-category-card:hover .longtop-category-image img {
  transform: scale(1.035);
}

.longtop-category-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 18px 16px;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #0f172a;
}

.longtop-category-arrow {
  flex: 0 0 auto;
  margin-left: 10px;
  color: #dc2626;
  font-size: 19px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.longtop-category-card:hover .longtop-category-arrow {
  transform: translateX(4px);
}

@media (max-width: 1200px) {
  .longtop-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .longtop-category-grid-section {
    padding: 16px 5% 48px;
  }

  .longtop-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .longtop-category-name {
    min-height: 68px;
    padding: 14px 12px;
    font-size: 14px;
  }
}

/* ---- block 2 ---- */
/* =========================
   Longtop Homepage Sections
========================= */

.longtop-home-sections,
.longtop-home-sections * {
  box-sizing: border-box;
}

.longtop-home-sections {
  width: 100%;
  font-family: Arial, Helvetica, sans-serif;
  color: #111827;
}

.longtop-section {
  width: 100%;
  padding: 84px 5%;
}

.longtop-section-inner {
  width: 100%;
  max-width: 1900px;
  margin: 0 auto;
}

.longtop-section-heading {
  margin: 0 0 16px;
  color: #020617;
  font-size: clamp(30px, 2.4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.longtop-section-intro {
  max-width: 760px;
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.75;
}

.longtop-red-line {
  width: 46px;
  height: 3px;
  margin: 20px 0 34px;
  background: #dc2626;
}


/* =========================
   WHY CHOOSE US
========================= */

.longtop-benefits-section {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.longtop-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 48px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.longtop-benefit-item {
  min-height: 260px;
  padding: 38px 32px;
  border-right: 1px solid #e5e7eb;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.longtop-benefit-item:last-child {
  border-right: 0;
}

.longtop-benefit-item:hover {
  position: relative;
  z-index: 2;
  transform: translateY(-4px);
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.08);
}

.longtop-benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 26px;
  border: 1px solid #fecaca;
  border-radius: 50%;
  background: #fff7f7;
  color: #dc2626;
}

.longtop-benefit-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.longtop-benefit-item h3 {
  margin: 0 0 14px;
  color: #020617;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}

.longtop-benefit-item p {
  margin: 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.75;
}


/* =========================
   ABOUT SECTION
========================= */

.longtop-about-section {
  background: #ffffff;
}

.longtop-about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(48px, 6vw, 110px);
}

.longtop-about-image {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  max-height: 520px;
  border-radius: 8px;
  background: #f1f5f9;
}

.longtop-about-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 520px;
  object-fit: cover;
}

.longtop-about-image::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 38%;
  height: 5px;
  background: #dc2626;
}

.longtop-about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #dc2626;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.longtop-about-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: #dc2626;
}

.longtop-about-copy p {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.8;
}

.longtop-about-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.longtop-about-point {
  padding: 22px 18px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.longtop-about-point strong {
  display: block;
  margin-bottom: 7px;
  color: #020617;
  font-size: 15px;
  line-height: 1.35;
}

.longtop-about-point span {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .longtop-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .longtop-benefit-item:nth-child(2) {
    border-right: 0;
  }

  .longtop-benefit-item:nth-child(-n + 2) {
    border-bottom: 1px solid #e5e7eb;
  }

  .longtop-about-layout {
    grid-template-columns: 1fr;
  }

  .longtop-about-image,
  .longtop-about-image img {
    min-height: 420px;
  }
}

@media (max-width: 767px) {
  .longtop-section {
    padding: 58px 5%;
  }

  .longtop-benefits-grid {
    grid-template-columns: 1fr;
  }

  .longtop-benefit-item {
    min-height: auto;
    padding: 30px 24px;
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  .longtop-benefit-item:last-child {
    border-bottom: 0;
  }

  .longtop-about-image,
  .longtop-about-image img {
    min-height: 300px;
  }

  .longtop-about-points {
    grid-template-columns: 1fr;
  }
}

/* ---- block 3 ---- */
/* WPForms styling inside homepage quote section */

.longtop-contact-form-wrap .wpforms-container {
width: 100%;
max-width: none;
margin: 0;
}

.longtop-contact-form-wrap .wpforms-field {
padding: 0 0 18px;
}

.longtop-contact-form-wrap .wpforms-field-label {
margin-bottom: 8px;
color: #020617;
font-size: 14px;
font-weight: 600;
}

.longtop-contact-form-wrap input[type="text"],
.longtop-contact-form-wrap input[type="email"],
.longtop-contact-form-wrap input[type="tel"],
.longtop-contact-form-wrap input[type="number"],
.longtop-contact-form-wrap input[type="url"],
.longtop-contact-form-wrap select,
.longtop-contact-form-wrap textarea {
width: 100% !important;
min-height: 48px;
padding: 12px 14px !important;
border: 1px solid #d7dde5 !important;
border-radius: 4px !important;
background: #ffffff !important;
color: #111827 !important;
font-family: Arial, Helvetica, sans-serif !important;
font-size: 15px !important;
box-shadow: none !important;
transition:
border-color 0.2s ease,
box-shadow 0.2s ease;
}

.longtop-contact-form-wrap textarea {
min-height: 140px;
resize: vertical;
}

.longtop-contact-form-wrap input:focus,
.longtop-contact-form-wrap select:focus,
.longtop-contact-form-wrap textarea:focus {
outline: none !important;
border-color: #dc2626 !important;
box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.longtop-contact-form-wrap .wpforms-submit-container {
padding-top: 6px;
}

.longtop-contact-form-wrap button[type="submit"],
.longtop-contact-form-wrap .wpforms-submit {
min-height: 48px !important;
padding: 13px 26px !important;
border: 1px solid #dc2626 !important;
border-radius: 4px !important;
background: #dc2626 !important;
color: #ffffff !important;
font-size: 15px !important;
font-weight: 700 !important;
line-height: 1.2 !important;
cursor: pointer;
transition:
background-color 0.2s ease,
transform 0.2s ease;
}

.longtop-contact-form-wrap button[type="submit"]:hover,
.longtop-contact-form-wrap .wpforms-submit:hover {
background: #b91c1c !important;
transform: translateY(-1px);
}

.longtop-contact-form-wrap .wpforms-error {
color: #b91c1c !important;
font-size: 13px !important;
}

.longtop-contact-form-wrap .wpforms-confirmation-container-full {
margin: 0;
padding: 20px;
border: 1px solid #bbf7d0;
background: #f0fdf4;
color: #166534;
}

/* ---- block 4 ---- */
.longtop-quote-copy {
  position: relative;
  height: 100%;
  min-height: 580px;
  padding: clamp(42px, 5vw, 76px);
  overflow: hidden;
  background: #020617;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
}

.longtop-quote-copy::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -150px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(220, 38, 38, 0.32);
  border-radius: 50%;
}

.longtop-quote-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #ef4444;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.longtop-quote-eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: #dc2626;
}

.longtop-quote-copy h2 {
  margin: 0 0 22px;
  color: #ffffff;
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 700;
  line-height: 1.15;
}

.longtop-quote-copy > p {
  max-width: 580px;
  margin: 0;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.8;
}

.longtop-quote-list {
  display: grid;
  gap: 17px;
  margin-top: 38px;
}

.longtop-quote-list div {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.6;
}

.longtop-quote-list span:first-child {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: #dc2626;
}

@media (max-width: 767px) {
  .longtop-quote-copy {
    min-height: auto;
    padding: 38px 24px;
  }
}
