/* =====================================================================
   Al Qadi ERP — Frappe Builder / public website helpers
   Taste-skill aligned: single accent (Register Royal Blue), zinc neutrals,
   100dvh heroes, grid layouts, glass panels — no emoji, no Inter.

   Loaded via hooks web_include_css alongside alqadi_theme.css
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap");

.alqadi-site {
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--alqadi-body-text, #1f2937);
  background: var(--alqadi-page-bg, #f0f4fa);
}

.alqadi-site a {
  color: var(--alqadi-gold, #2b6cb0);
  text-decoration: none;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.alqadi-site a:hover {
  color: var(--alqadi-gold-dark, #1a4f8a);
}

/* Full viewport sections — use instead of vh to avoid mobile browser chrome jumps */
.alqadi-min-dvh {
  min-height: 100dvh;
}

.alqadi-container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .alqadi-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Split hero — anti-center bias; stacks on small screens */
.alqadi-hero-split {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .alqadi-hero-split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.alqadi-display {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--alqadi-black, #1a1a1a);
}

.alqadi-lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--alqadi-text-muted, #6b7280);
  max-width: 65ch;
}

.alqadi-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--alqadi-gold-dark, #1a4f8a);
}

/* “Liquid glass” panel — subtle inner highlight, no neon glow */
.alqadi-glass {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 1.5rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 20px 40px -15px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html[data-theme="dark"] .alqadi-glass {
  background: rgba(30, 33, 40, 0.78);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 40px -15px rgba(0, 0, 0, 0.45);
}

/* Bento-style asymmetric grid — not three equal cards */
.alqadi-bento {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .alqadi-bento {
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto auto;
  }

  .alqadi-bento .alqadi-bento-wide {
    grid-column: 1 / -1;
  }
}

.alqadi-card-elevated {
  background: var(--alqadi-content-surface, #fff);
  border: 1px solid rgba(43, 108, 176, 0.15);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
}

.alqadi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  background: var(--alqadi-gold, #2b6cb0);
  color: #fff;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.alqadi-btn:hover {
  background: var(--alqadi-gold-dark, #1a4f8a);
}

.alqadi-btn:active {
  transform: translateY(1px) scale(0.99);
}

.alqadi-btn-ghost {
  background: transparent;
  color: var(--alqadi-gold-dark, #1a4f8a);
  border: 1px solid rgba(43, 108, 176, 0.35);
}

.alqadi-btn-ghost:hover {
  background: rgba(43, 108, 176, 0.08);
}

/* Form stack — label above field */
.alqadi-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.alqadi-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--alqadi-label-color, #374151);
}

.alqadi-field input,
.alqadi-field select,
.alqadi-field textarea {
  border: 1px solid var(--alqadi-input-border, #5b7fa8);
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  font: inherit;
  background: var(--alqadi-content-surface, #fff);
  color: var(--alqadi-body-text, #1f2937);
}

.alqadi-field .help {
  font-size: 0.8125rem;
  color: var(--alqadi-text-muted, #6b7280);
}

.alqadi-field .error {
  font-size: 0.8125rem;
  color: var(--alqadi-danger, #e53e3e);
}

/* Metric row — monospace numbers at higher density */
.alqadi-mono-num {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
}
