/* =====================================================
   Utility Classes  – Qubic3D Marketing Site
   Shared, single-purpose helpers that can be applied to
   any element.  Keep this lean and atomic.            
   ===================================================== */

/* Glass / backdrop-blur surface */
.glass {
  /* match navbar glass effect */
  background: rgba(255, 255, 255, 0.178);
  backdrop-filter: blur(14px) saturate(160%);
  border: none;
  border-radius: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}

/* Lifted hover elevation */
.lift-hover {
  transition: transform var(--motion-fade) var(--ease-out),
              box-shadow  var(--motion-fade) var(--ease-out);
}
.lift-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--elev-card-hover);
}

/* Raised image / screenshot */
.img-raised {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
  transition: transform var(--motion-fade) var(--ease-out);
}

/* Disable hover on touch devices */
@media (hover: none) {
  .img-raised:hover {
    transform: none;
  }
}

@media (min-width: 768px) {
  .img-raised:hover {
    transform: scale(1.02);
  }
}

/* Gradient text helper */
.gradient-text {
  background: linear-gradient(90deg,var(--c-grad-a),var(--c-grad-b));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Spacing */
.section-spacing    { margin: 4rem auto; }
.section-spacing-lg { margin: 6rem auto; }

/* Mobile: reduce section spacing */
@media (max-width: 767px) {
  .section-spacing {
    margin-top: 0.5rem;
    margin-bottom: 2rem;
  }
}

/* Text */
.text-center { text-align: center; }
.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}
.section-kicker {
  font: 700 0.75rem/1 'Poppins', sans-serif;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  color: var(--c-text-med);
}
.section-headline {
  font: 700 2.25rem/1.2 'Poppins', sans-serif;
  color: var(--c-text-hi);
  margin: 0;
}
.section-header p {
  margin: 0;
}
.section-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

/* Lists presented as cards */
.card-list {
  padding: 1.5rem;
  margin-top: 1rem;
  list-style: none;
}
.card-list li { padding:.5rem 0; border-bottom:1px solid rgba(255,255,255,.05); }
.card-list li:last-child { border-bottom:none; }

/* Simple responsive grids */
.grid-3 {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit,minmax(16rem,1fr));
}
.grid-4 {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit,minmax(12rem,1fr));
}

/* -----------------------------------------------------
   Form Elements – shared styling for contact, signup etc.
   ----------------------------------------------------- */

/* Wrapper for each label / control pair */
.field {
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Label text */
.field label {
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Text inputs & textarea */
.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--c-text-hi);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--c-text-low);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
  transition: border-color var(--motion-fade) var(--ease-out),
              box-shadow  var(--motion-fade) var(--ease-out);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--c-text-med);
}

/* Focus ring */
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-grad-a);
  box-shadow: 0 0 0 2px rgba(35, 107, 255, 0.35);
}

/* Contact form container */
#contactForm {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#contactForm .btn {
  align-self: flex-start;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* tighter vertical spacing */
  font-size: 0.9rem !important; /* slightly smaller text */
}
.lead-form .btn {
  align-self: flex-start;
}
.lead-form label {
  font-size: 0.9rem !important;
}
.lead-form input,
.lead-form textarea,
.lead-form select {
  font-size: 0.9rem !important;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  color: var(--c-text-hi);
  width: 100%;
}
.lead-form select {
  cursor: pointer;
}
.lead-form input:focus,
.lead-form textarea:focus,
.lead-form select:focus {
  outline: none;
  border-color: rgba(0, 90, 237, 0.6);
  box-shadow: 0 0 0 1px rgba(0, 90, 237, 0.3);
}
.form-grid {
  display: grid !important;
  gap: 0.9rem !important;
  grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
}
.form-grid .field {
  margin: 0 !important;
}

/* Success message */
.form__success {
  margin-top: 1rem;
  color: var(--c-success);
  font-weight: 600;
}

.text-muted  { color: var(--c-text-med); }

/* Section subtitle */
.section-subtitle {
  font-size: 1.5rem;
  color: var(--c-text-hi);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Consolidate section spacing - use consistent breakpoint */
@media (max-width: 767px){
  .section-spacing{
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    margin-left: 0;
    margin-right: 0;
    padding-inline: 0;
  }
  .section-spacing-lg{
    margin: 4rem auto;
  }
  /* Card padding already handled in components.css */
  .section-headline{
    font-size: clamp(1.5rem, 5vw, 2rem);
    line-height: 1.2;
  }
  .stack-kicker, .intro-kicker{
    font-size: clamp(1rem, 3vw, 1.25rem);
  }
  .stack-main,.intro-main{font-size:.875rem}
} 

/* Consolidate form-grid - already handled in components.css, remove redundancy */
