/* ==========================================================================
   Arco Widgets
   BEM-structured styles for all Elementor Arco Pro widgets
   Requires: arco-design-system.css
   ========================================================================== */

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

.arco-hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--arco-primary);
}

/* Background layer */
.arco-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  will-change: transform;
}

/* Overlay */
.arco-hero__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--arco-primary);
  opacity: 0.72;
}

/* Inner layout */
.arco-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--arco-space-10);
  padding-top: var(--arco-space-20);
  padding-bottom: var(--arco-space-20);
}

@media (min-width: 1024px) {
  .arco-hero--split .arco-hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--arco-space-16);
  }
  .arco-hero--split .arco-hero__content {
    flex: 1 1 0;
  }
  .arco-hero--split .arco-hero__image {
    flex: 0 0 45%;
    max-width: 45%;
  }
}

/* Content block */
.arco-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.arco-hero--align-center .arco-hero__content {
  align-items: center;
  text-align: center;
}

/* Eyebrow */
.arco-hero__eyebrow {
  display: inline-block;
  font-family: var(--arco-font-body);
  font-size: var(--arco-text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--arco-secondary);
  margin-bottom: var(--arco-space-4);
}

/* Headline */
.arco-hero__headline {
  font-family: var(--arco-font-heading);
  font-size: clamp(var(--arco-text-3xl), 5vw, var(--arco-text-5xl));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--arco-white);
  margin: 0 0 var(--arco-space-5) 0;
}

/* Subheadline */
.arco-hero__sub {
  font-family: var(--arco-font-body);
  font-size: var(--arco-text-lg);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 var(--arco-space-8) 0;
  max-width: 52ch;
}

/* CTA row */
.arco-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--arco-space-4);
  align-items: center;
}

@media (max-width: 479px) {
  .arco-hero__cta {
    flex-direction: column;
    width: 100%;
  }
  .arco-hero__cta .arco-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Foreground image */
.arco-hero__image {
  position: relative;
}

.arco-hero__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--arco-radius-lg);
  box-shadow: var(--arco-shadow-lg);
}

@media (max-width: 1023px) {
  .arco-hero__image {
    order: -1; /* image below text on mobile */
    max-width: 480px;
    margin-inline: auto;
  }
}


/* ==========================================================================
   PRODUCT GRID
   ========================================================================== */

.arco-product-grid {
  container-type: inline-size;
}

.arco-product-grid__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--arco-space-8);
}

.arco-product-grid__grid--equal {
  align-items: stretch;
}

/* Responsive column fallbacks (CSS-only; Elementor also outputs via selectors) */
@container (max-width: 900px) {
  .arco-product-grid__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@container (max-width: 560px) {
  .arco-product-grid__grid {
    grid-template-columns: 1fr;
  }
}

.arco-product-grid__empty {
  color: var(--arco-neutral-500);
  font-size: var(--arco-text-base);
  padding: var(--arco-space-12) 0;
  text-align: center;
}

/* ── Product Card ────────────────────────────────────────────────────────── */

.arco-product-card {
  display: flex;
  flex-direction: column;
  background: var(--arco-white);
  border-radius: var(--arco-radius-lg);
  border: 1px solid var(--arco-neutral-200);
  box-shadow: var(--arco-shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--arco-transition-base), transform var(--arco-transition-base);
}

.arco-product-card:hover {
  box-shadow: var(--arco-shadow-md);
  transform: translateY(-3px);
}

/* Image wrapper */
.arco-product-card__image {
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.arco-product-card__image-ratio {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--arco-neutral-100);
}

.arco-product-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.arco-product-card__image:hover .arco-product-card__img {
  transform: scale(1.04);
}

/* Body */
.arco-product-card__body {
  flex: 1;
  padding: var(--arco-space-6);
  display: flex;
  flex-direction: column;
  gap: var(--arco-space-3);
}

.arco-product-card__title {
  font-family: var(--arco-font-heading);
  font-size: var(--arco-text-xl);
  font-weight: 700;
  line-height: 1.3;
  color: var(--arco-neutral-800);
  margin: 0;
}

.arco-product-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--arco-transition-fast);
}
.arco-product-card__title a:hover {
  color: var(--arco-primary);
}

.arco-product-card__excerpt {
  font-family: var(--arco-font-body);
  font-size: var(--arco-text-sm);
  line-height: 1.6;
  color: var(--arco-neutral-500);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer */
.arco-product-card__footer {
  padding: var(--arco-space-4) var(--arco-space-6) var(--arco-space-5);
  display: flex;
  align-items: center;
  border-top: 1px solid var(--arco-neutral-100);
  margin-top: auto;
}


/* ==========================================================================
   QUOTE FORM
   ========================================================================== */

.arco-quote-form-wrap {
  width: 100%;
}

.arco-quote-form-wrap .arco-section-title {
  margin-bottom: var(--arco-space-3);
}

.arco-quote-form-wrap .arco-section-lead {
  margin-bottom: var(--arco-space-8);
}

.arco-quote-form {
  width: 100%;
}

/* Field grid */
.arco-quote-form__fields {
  display: flex;
  flex-direction: column;
  gap: var(--arco-space-5);
}

/* Two-column row */
.arco-quote-form__row {
  display: grid;
  gap: var(--arco-space-5);
}

.arco-quote-form__row--2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
  .arco-quote-form__row--2 {
    grid-template-columns: 1fr;
  }
}

/* Actions row */
.arco-quote-form__actions {
  margin-top: var(--arco-space-6);
}

/* Feedback */
.arco-quote-form__feedback {
  margin-top: var(--arco-space-6);
}

/* Compact mode */
.arco-quote-form-wrap--compact .arco-quote-form__row--2 {
  grid-template-columns: 1fr 1fr;
}
.arco-quote-form-wrap--compact .arco-quote-form__fields {
  gap: var(--arco-space-4);
}
