/* ============================================
   QUILLEN — Unified Typography & Spacing v3
   Complete design system with proper hierarchy
   ============================================

   TYPOGRAPHY SCALE:
   ─────────────────────────────────────────────
   q-h1-display  Hero H1 (homepage only)     48→72px  — the BIGGEST on the site
   q-h1          Page H1 (subpage titles)     32→48px
   q-h2          Section H2                   28→40px
   q-h3          Subsection / Card title      22→28px
   q-h4          Small heading in cards       18→22px
   q-label-heading  Uppercase label heading   13px uppercase
   ─────────────────────────────────────────────
   q-body-xl     Hero subtext                 1.25rem / 20px
   q-body-lg     Important text               1.125rem / 18px
   q-body        Standard body                1rem / 16px
   q-body-sm     Cards, captions              0.9375rem / 15px
   q-body-xs     Small print                  0.875rem / 14px
   ─────────────────────────────────────────────

   SECTION SPACING:
   q-section     Standard section             6rem top/bottom (desktop)
   q-section-sm  Compact section              4rem top/bottom

   CARD STANDARDS:
   Large:   p-8 md:p-10  rounded-[24px]
   Medium:  p-6 md:p-8   rounded-[20px]
   Small:   p-6           rounded-2xl
*/

/* === GLOBAL === */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ══════════════════════════════════════════════
   HEADING HIERARCHY
   Clear size separation at every level
   ══════════════════════════════════════════════ */

/* H1 Display — Hero headline, LARGEST text on the site */
.q-h1-display {
  font-size: clamp(2.75rem, 6vw, 4.5rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.03em !important;
}

/* H1 Page — subpage titles (Servicii, Despre Noi, etc.) */
.q-h1 {
  font-size: clamp(2rem, 4.5vw, 3rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
}

/* H2 Section — all section headers across the site */
.q-h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.015em !important;
}

/* H3 Subsection — card titles, feature headings */
.q-h3 {
  font-size: clamp(1.375rem, 2vw, 1.75rem) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
  font-weight: 600 !important;
}

/* H4 Small heading — within-card subheadings */
.q-h4 {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem) !important;
  line-height: 1.35 !important;
  letter-spacing: -0.005em !important;
  font-weight: 600 !important;
}

/* Label-style heading — uppercase decorative headings */
.q-label-heading {
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  line-height: 1.4 !important;
}

/* ══════════════════════════════════════════════
   BODY TEXT
   ══════════════════════════════════════════════ */

.q-body-xl { font-size: 1.25rem !important;   line-height: 1.7 !important;  font-weight: 300; }
.q-body-lg { font-size: 1.125rem !important;  line-height: 1.75 !important; }
.q-body    { font-size: 1rem !important;       line-height: 1.7 !important;  }
.q-body-sm { font-size: 0.9375rem !important;  line-height: 1.7 !important;  }
.q-body-xs { font-size: 0.875rem !important;   line-height: 1.65 !important; }

/* Force readable body text inside cards */
.glass-card p, .glass-panel p,
[class*="rounded-[28px]"] > div p,
[class*="rounded-[24px]"] > div p,
[class*="rounded-[20px]"] > div p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════
   COMPONENT-SPECIFIC
   ══════════════════════════════════════════════ */

/* FAQ */
.faq-body p {
  font-size: 0.9375rem !important;
  line-height: 1.72 !important;
}
.faq-toggle span.font-headline {
  font-size: 1rem !important;
  font-weight: 600 !important;
}

/* Comparison section (pricing) */
#preturi p, #preturi span.font-body {
  font-size: 0.9375rem !important;
}

/* Timeline check items */
.q-timeline-check {
  font-size: 0.8125rem !important;
  line-height: 1.5 !important;
}

/* Integration cards */
.q-integration-label {
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
}
.q-integration-sub {
  font-size: 0.75rem !important;
  line-height: 1.5 !important;
}

/* ══════════════════════════════════════════════
   SECTION SPACING
   ══════════════════════════════════════════════ */

.q-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.q-section-sm {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Section header blocks */
.q-section-header {
  margin-bottom: 4rem;
}
.q-section-header .q-label {
  font-size: 0.75rem;
  font-family: 'Geist Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  display: block;
}
.q-section-header p {
  font-size: 1.125rem !important;
  line-height: 1.7 !important;
  font-weight: 300;
  margin-top: 1.25rem;
}

/* ══════════════════════════════════════════════
   MOBILE RESPONSIVE
   Proper scaling at each breakpoint
   ══════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .q-h1-display {
    font-size: clamp(2.5rem, 7vw, 3.5rem) !important;
  }
  .q-h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem) !important;
  }
  .q-h2 {
    font-size: clamp(1.5rem, 4vw, 2rem) !important;
  }
  .q-h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem) !important;
  }
  .q-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .q-h1-display {
    font-size: 2.75rem !important;
    line-height: 1.06 !important;
  }
  .q-h1 {
    font-size: 2.125rem !important;
    line-height: 1.12 !important;
  }
  .q-h2 {
    font-size: 1.875rem !important;
    line-height: 1.15 !important;
  }
  .q-h3 {
    font-size: 1.375rem !important;
    line-height: 1.25 !important;
  }
  .q-h4 {
    font-size: 1.125rem !important;
    line-height: 1.3 !important;
  }
  .q-body-xl {
    font-size: 1.125rem !important;
  }
  .q-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  .q-section-sm {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  /* Consistent mobile container padding */
  .q-section > div,
  section > .max-w-7xl,
  section > .max-w-5xl,
  section > .max-w-3xl {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Small mobile */
@media (max-width: 380px) {
  .q-h1-display {
    font-size: 2.375rem !important;
  }
  .q-h1 {
    font-size: 1.875rem !important;
  }
  .q-h2 {
    font-size: 1.625rem !important;
  }
}
