/* =========================================================
   CUSTOMER AREA – ROOT TOKENS
   ========================================================= */

:root {
  --dx-primary: #327179;
  --dx-mint: #e6f4f1;

  --ca-ink: #071c1f;
  --ca-ink-soft: #3b4a4f;
  --ca-border-subtle: rgba(11, 32, 36, 0.08);
  --ca-surface: #f7faf9;
  --ca-surface-elevated: #ffffff;

  --ca-radius-lg: 24px;
  --ca-radius-md: 18px;
  --ca-radius-sm: 10px;

  --ca-shadow-soft: 0 26px 60px rgba(4, 23, 27, 0.24);
  --ca-shadow-card: 0 14px 36px rgba(7, 28, 31, 0.14);

  --ca-transition-fast: 0.16s cubic-bezier(0.2, 0.7, 0.3, 1);
  --ca-transition-slow: 0.3s cubic-bezier(0.18, 0.7, 0.3, 1);
}

/* =========================================================
   PAGE BACKDROP
   ========================================================= */

/* Outer wrapper specific to this page */
.ca-page {
  min-height: calc(100vh - 120px);
  padding: 1.5rem 1.75rem 4.5rem;
  color: var(--ca-ink);
}

/* Centered content width, like Stripe/Apple */
.ca-page-inner {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
}

/* A very soft halo behind the main content */
.ca-page-inner::before {
  content: "";
  position: absolute;
  inset: -80px -140px auto;
  height: 280px;
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

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

.ca-hero {
  margin-bottom: 2.8rem;
}

.ca-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: rgba(230, 244, 241, 0.85);
  border: 1px solid rgba(50, 113, 121, 0.08);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dx-primary);
  margin-bottom: 0.9rem;
}

.ca-hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dx-primary);
}

.ca-hero-title {
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  color: var(--ca-ink);
}

.ca-hero-subtitle {
  max-width: 620px;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(7, 28, 31, 0.76);
}

/* optional small line of meta (e.g. "For brands, dealers and project partners") */
.ca-hero-meta {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(7, 28, 31, 0.55);
}

/* =========================================================
   GRID LAYOUT FOR CUSTOMER AREA CARDS
   ========================================================= */

.ca-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
  align-items: stretch;
}

/* Each item (card) in the grid */
.ca-card {
  position: relative;
  border-radius: var(--ca-radius-lg);
  background: var(--ca-surface-elevated);
  border: 1px solid var(--ca-border-subtle);
  box-shadow: 0 10px 26px rgba(7, 28, 31, 0.1);
  padding: 1.5rem 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--ca-transition-fast),
    box-shadow var(--ca-transition-fast), border-color var(--ca-transition-fast),
    background-color var(--ca-transition-fast);
}

/* subtle inner gradient highlight at the top */
.ca-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(230, 244, 241, 0.85),
    transparent 50%
  );
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity var(--ca-transition-slow);
}

/* a faint divider line near the bottom to anchor the footprint */
.ca-card::after {
  content: "";
  position: absolute;
  left: 1.6rem;
  right: 1.6rem;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(11, 32, 36, 0.08),
    transparent
  );
}

/* hover state to feel “alive” but still sober */
.ca-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--ca-shadow-card);
  border-color: rgba(50, 113, 121, 0.25);
  background-color: #ffffff;
}
.ca-card:hover::before {
  opacity: 1;
}

/* =========================================================
   CARD CONTENT STRUCTURE
   ========================================================= */

/* small label/icon row at top of card */
.ca-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

/* pill label (e.g. “Catalogue”, “Dealer”, …) */
.ca-card-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(230, 244, 241, 0.9);
  border: 1px solid rgba(50, 113, 121, 0.15);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dx-primary);
}

/* small decorative icon, purely CSS-based circle */
.ca-card-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffffff, var(--dx-mint));
  border: 1px solid rgba(50, 113, 121, 0.18);
  position: relative;
}

.ca-card-icon::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 20%, var(--dx-primary), #3e8c78);
  opacity: 0.9;
}

/* title + spec + description block */
.ca-card-heading {
  margin-bottom: 0.8rem;
}

.ca-card-title {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ca-ink);
}

.ca-card-spec {
  margin: 0 0 0.6rem;
  font-size: 0.86rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(7, 28, 31, 0.55);
}

.ca-card-description {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ca-ink-soft);
}

/* subtle “baseline” line under the heading */
.ca-card-heading::after {
  content: "";
  display: block;
  margin-top: 0.9rem;
  width: 56px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--dx-primary),
    rgba(50, 113, 121, 0.25)
  );
  opacity: 0.6;
}

/* bottom row: CTA + optional meta info */
.ca-card-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

/* subtle meta text (e.g. “Ideal for buyers”, etc. – optional) */
.ca-card-meta {
  font-size: 0.78rem;
  color: rgba(7, 28, 31, 0.55);
}

/* =========================================================
   CTA BUTTON STYLE
   ========================================================= */

.ca-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;

  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(50, 113, 121, 0.18);

  background: linear-gradient(
    135deg,
    rgba(50, 113, 121, 0.9),
    rgba(62, 140, 120, 0.9)
  );
  color: #ffffff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;

  box-shadow: 0 10px 26px rgba(7, 28, 31, 0.25);
  transition: background var(--ca-transition-slow),
    box-shadow var(--ca-transition-fast), transform var(--ca-transition-fast),
    border-color var(--ca-transition-fast), color var(--ca-transition-fast);
}

.ca-card-cta-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(230, 244, 241, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
}

.ca-card-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(7, 28, 31, 0.32);
  border-color: rgba(50, 113, 121, 0.35);
  background: linear-gradient(
    135deg,
    rgba(50, 113, 121, 1),
    rgba(62, 140, 120, 1)
  );
}

.ca-card-cta:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 8px 20px rgba(7, 28, 31, 0.25);
}

/* =========================================================
   VARIANTS PER CARD (SUBTLE, NOT LOUD)
   ========================================================= */

/* Product Catalogue */
.ca-card--catalogue {
  --ca-card-tint: rgba(230, 244, 241, 0.9);
}
.ca-card--catalogue .ca-card-label {
  background: rgba(230, 244, 241, 0.95);
}

/* Become a Dealer */
.ca-card--dealer {
  --ca-card-tint: rgba(50, 113, 121, 0.1);
}
.ca-card--dealer .ca-card-label {
  background: rgba(50, 113, 121, 0.09);
  color: var(--ca-ink);
}

/* Project Service */
.ca-card--project {
  --ca-card-tint: rgba(62, 140, 120, 0.12);
}
.ca-card--project .ca-card-label {
  background: rgba(62, 140, 120, 0.1);
}

/* Private Label */
.ca-card--private {
  --ca-card-tint: rgba(230, 244, 241, 0.9);
}
.ca-card--private .ca-card-label {
  background: rgba(230, 244, 241, 0.98);
}

/* Use the tint in the gradient highlight */
.ca-card--catalogue::before,
.ca-card--dealer::before,
.ca-card--project::before,
.ca-card--private::before {
  background: radial-gradient(
      circle at 0% 0%,
      var(--ca-card-tint, rgba(230, 244, 241, 0.85)) 0,
      transparent 55%
    ),
    linear-gradient(145deg, rgba(230, 244, 241, 0.75), transparent 50%);
}

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

@media (max-width: 900px) {
  .ca-page {
    padding: 1.5rem 1.25rem 3.5rem;
  }

  .ca-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ca-card {
    padding: 1.4rem 1.4rem 1.6rem;
  }

  .ca-card-bottom-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .ca-page {
    padding: 2.5rem 1rem 3.2rem;
  }

  .ca-hero {
    margin-bottom: 2.2rem;
  }

  .ca-hero-title {
    font-size: 1.9rem;
  }

  .ca-card {
    border-radius: var(--ca-radius-md);
  }
}
