/* ===== APP-SPECIFIC CSS (design system base is in base.css, layout-core.css, components.css) ===== */
/* This file: app utilities (glass, btn, section-title, error pages, headings). No page background – that lives in layout-core.css (main layout). */
/* Variables and reset in base.css; .container and page background in layout-core.css; buttons/links in components.css. */

/* ===== UTILITY CLASSES ===== */
.bold-home-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  color: var(--fg);
}

/* .container is in layout.css */

.hidden {
  display: none !important;
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line2);
  border-radius: var(--r);
  box-shadow: var(--glass-shadow, 0 20px 60px rgba(0, 230, 255, 0.14));
}

/* Utility classes using design tokens */
.text-fg {
  color: var(--fg);
}

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

.text-cta {
  color: var(--cta);
}

/* Links distinguishable without relying on color (WCAG) */
a.text-cta {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
a.text-cta:hover {
  text-decoration: underline;
}

.text-success {
  color: var(--success);
}

.text-warning {
  color: var(--warning);
}

.text-error {
  color: var(--error);
}

.bg-glass {
  background: var(--glass);
}

.bg-bg-900 {
  background: var(--bg-900);
}

.bg-cta {
  background: var(--cta);
}

.bg-success {
  background: var(--success);
}

.bg-warning {
  background: var(--warning);
}

.bg-error {
  background: var(--error);
}

.border-line1 {
  border-color: var(--line1);
}

.border-line2 {
  border-color: var(--line2);
}

.border-cta {
  border-color: var(--cta);
}

.border-success {
  border-color: var(--success);
}

.border-warning {
  border-color: var(--warning);
}

.border-error {
  border-color: var(--error);
}

/* CTA contrast on dark backgrounds (WCAG AA) */
.bg-bg-900 .text-cta,
.bg-bg-800 .text-cta {
  color: var(--cta-on-dark);
}
.bg-bg-900 .border-cta,
.bg-bg-800 .border-cta {
  border-color: var(--cta-on-dark);
}
.bg-bg-900 a:not([class*="text-"]),
.bg-bg-800 a:not([class*="text-"]) {
  color: var(--cta-on-dark);
}

.hover\:text-fg:hover {
  color: var(--fg);
}

.hover\:text-cta:hover {
  color: var(--cta);
}

.hover\:bg-line1:hover {
  background: var(--line1);
}

.hover\:border-cta:hover {
  border-color: var(--cta);
}

.hover\:shadow-lg:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hover\:shadow-cta\/20:hover {
  box-shadow: 0 20px 60px rgba(7, 156, 255, 0.2);
}

/* .btn, .btn-cta, .btn-ghost: canonical in main/components.css */

.btn-contact {
  background: #6B46C1 !important;
  color: white !important;
}

.btn-contact:hover {
  background: #5B21B6 !important;
  color: white !important;
}

/* Scrollbar Hide Utility */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-fg);
  border: 1px solid var(--badge-border);
  font-size: 0.8rem;
}

.neon {
  outline: 2px solid var(--cta);
  box-shadow: 0 0 0 2px rgba(7, 156, 255, 0.12), 0 30px 90px rgba(0, 230, 255, 0.28);
}

/* .section is in layout.css */

.stat {
  border: 1px solid var(--line1);
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--glass);
  text-align: center;
}

.muted {
  color: var(--muted);
}

/* ===== SECTION HEADERS (Wireframe Base) ===== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Service view hero: only h1 (title) and h2 (subtitle). Subtitle classes: .default-hero__subtitle (default template), .it-services-hero__subtitle (it-services). */

/* Section heading as p (service view: one h1, one h2; rest section titles are p with BEM __heading + this class). BEM __heading supplies font-size/weight. */
.section-heading-p {
  display: block;
  margin: 0 0 1rem;
}

/* .sr-only is in base.css */


/* ===== RESPONSIVE DESIGN (Wireframe Base) ===== */
/* Mobile-only .btn full-width moved to app.mobile.css (media="(max-width: 1023px)"). */

/* SVGs follow currentColor so theme + parent text color apply; dark-only hard white avoids light-theme contrast breaks */
html[data-theme="dark"] .text-white svg,
html[data-theme="dark"] .text-white svg path,
html[data-theme="dark"] .text-white svg use,
html[data-theme="dark"] svg.text-white,
html[data-theme="dark"] svg.text-white path,
html[data-theme="dark"] svg.text-white use,
html[data-theme="dark"] .icon-svg.text-white,
html[data-theme="dark"] .icon-svg.text-white svg,
html[data-theme="dark"] .icon-svg.text-white svg path,
html[data-theme="dark"] .icon-svg.text-white svg use {
  fill: #ffffff !important;
  color: #ffffff !important;
}

html[data-theme="light"] .text-white svg,
html[data-theme="light"] .text-white svg path,
html[data-theme="light"] .text-white svg use,
html[data-theme="light"] svg.text-white,
html[data-theme="light"] svg.text-white path,
html[data-theme="light"] svg.text-white use,
html[data-theme="light"] .icon-svg.text-white,
html[data-theme="light"] .icon-svg.text-white svg,
html[data-theme="light"] .icon-svg.text-white svg path,
html[data-theme="light"] .icon-svg.text-white svg use {
  fill: currentColor !important;
  color: currentColor !important;
}

/* ===== SEO-FRIENDLY HEADING CLASSES ===== */
/* Use real H1/H2/H3 with section-title and subsection-title for semantic structure and SEO. */
.heading-1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .heading-1 {
    font-size: 3.75rem;
  }
}
/* Desktop .heading-1 4.5rem in app.desktop.css */

.heading-2 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .heading-2 {
    font-size: 2.25rem;
  }
}
/* Desktop heading overrides in app.desktop.css if needed */

.heading-3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

/* Semantic subsection heading (use with <h3 class="subsection-title">) */
.subsection-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.heading-4 {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

/* Select dropdown: follow active theme (html data-theme from BoldTheme) */
html[data-theme="dark"] select {
  color-scheme: dark;
}

html[data-theme="light"] select {
  color-scheme: light;
}

select option {
  background-color: var(--color-background) !important;
  color: var(--color-text-primary) !important;
  padding: 0.5rem 0.75rem;
}

select:focus option {
  background-color: var(--color-surface-deep) !important;
  color: var(--color-text-primary) !important;
}

select option:hover,
select option:focus {
  background-color: color-mix(in srgb, var(--color-accent) 18%, var(--color-background)) !important;
  color: var(--color-text-primary) !important;
}

select option:checked {
  background-color: color-mix(in srgb, var(--color-accent) 28%, var(--color-background)) !important;
  color: var(--cta) !important;
}
