/* =====================================================================
   XGTECH 2026 UI refresh: colours, fonts and finishing touches.
   Layout is unchanged. Loaded last on every page.
   To switch the refresh off, remove the modern.css <link> line
   (and restore the old style.css from the backup folder).
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --xg-primary: #2563eb;      /* main brand blue */
  --xg-primary-2: #4f46e5;    /* indigo, for gradients */
  --xg-accent: #06b6d4;       /* cyan highlight */
  --xg-dark: #0b1220;         /* dark sections, sticky header */
  --xg-dark-2: #111a2e;
  --xg-text: #5b6475;         /* body text */
  --xg-heading: #0f172a;      /* headings */
  --xg-soft: #f4f7fe;         /* light section background */
  --xg-soft-2: #e8effd;
  --xg-border: rgba(15, 23, 42, .08);
  --xg-grad: linear-gradient(135deg, var(--xg-primary) 0%, var(--xg-primary-2) 100%);
  --xg-radius: 16px;
  --xg-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
  --xg-shadow-hover: 0 2px 4px rgba(15,23,42,.06), 0 18px 40px rgba(37,99,235,.16);
  --xg-body-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --xg-head-font: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

/* ---- Typography ---------------------------------------------------- */
body { font-family: var(--xg-body-font); color: var(--xg-text); -webkit-font-smoothing: antialiased; }
body p, body li, body a, body span, body input, body textarea, body select, body button, body label, body td {
  font-family: var(--xg-body-font);
}
h1, h2, h3, h4, h5, h6,
h1 *:not(i), h2 *:not(i), h3 *:not(i), h4 *:not(i), h5 *:not(i), h6 *:not(i) {
  font-family: var(--xg-head-font) !important;
  letter-spacing: -0.02em;
}
h1, h2, h3, h4, h5, h6 { color: var(--xg-heading); line-height: 1.2; }
.hero-area .hero-content h1 { line-height: 1.1; letter-spacing: -0.015em; font-size: clamp(34px, 5vw, 64px); font-weight: 800; margin-bottom: 4px; }
.hero-area .hero-content h4 { letter-spacing: .04em !important; font-weight: 600; }
.hero-area .hero-content h1 + h4 { margin-top: 14px; color: #c7d6ff; }
p { line-height: 1.7; }
::selection { background: rgba(37, 99, 235, .18); }

/* Highlighted words in titles ("XGTECH", "Solutions", ...) get a gradient */
.section-title h1 span, .section-title h2 span, .hero-content h1 span, h1 > span, h2 > span {
  background: linear-gradient(90deg, var(--xg-primary), var(--xg-accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--xg-primary);
}
.section-title h4 { color: var(--xg-primary); letter-spacing: .08em; font-size: 14px; font-weight: 700; }

/* ---- Header -------------------------------------------------------- */
.sticky {
  background: rgba(11, 18, 32, .82) !important;
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 10px 30px rgba(2,6,23,.25);
}
.header-menu ul li a { font-weight: 500; }
.header-menu ul li .sub-menu {
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 40px rgba(15,23,42,.14); border: 1px solid var(--xg-border);
}

/* ---- Buttons ------------------------------------------------------- */
.header-button a,
.hero-button a,
.toptech-button a,
.portfolio-button a,
.blog-button a,
.flip-box-button a,
.single-contact-box button,
.contact-content button,
button[type="submit"], input[type="submit"] {
  border-radius: 999px !important;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease !important;
}
.header-button a,
.hero-button a:not(.button-two),
.toptech-button a,
.single-contact-box button,
.contact-content button,
button[type="submit"], input[type="submit"] {
  background: var(--xg-grad) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(37, 99, 235, .35);
}
.header-button a:hover,
.hero-button a:not(.button-two):hover,
.toptech-button a:hover,
.single-contact-box button:hover,
.contact-content button:hover,
button[type="submit"]:hover, input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, .45);
  color: #fff !important;
}
.hero-button a.button-two {
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-button a.button-two:hover { background: #fff !important; color: var(--xg-primary) !important; transform: translateY(-2px); }

/* ---- Cards --------------------------------------------------------- */
.flip-box-front, .flip-box-back,
.single-team-box, .single-blog-box, .single-testimonial-box,
.single-portfolio-box, .counter-box, .single-pricing-box, .pricing-single-box,
.single-service-box, .service-box, .single-feature-box, .single-contact-box {
  border-radius: var(--xg-radius) !important;
}
.feature-area .flip-box-front,
.single-blog-box, .single-pricing-box, .pricing-single-box {
  border: 1px solid var(--xg-border) !important;
  box-shadow: var(--xg-shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature-area .flip-box:hover .flip-box-front,
.single-blog-box:hover, .single-pricing-box:hover, .pricing-single-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--xg-shadow-hover);
}
.flip-box-back { background: var(--xg-grad) !important; }
.single-team-box img, .team-thumb img, .portfolio-thumb img, .single-portfolio-box img,
.blog-thumb img, .about-thumb img { border-radius: var(--xg-radius); }
.service-area .single-service-box, .service-area [class*="service-box"] {
  background: rgba(255,255,255,.04);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}

/* FAQ */
.faq-singular { border-radius: 12px !important; overflow: hidden; border: 1px solid var(--xg-border); }
.add-faqs-bg { border-radius: 24px; }

/* ---- Forms --------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="date"], select, textarea {
  border-radius: 10px !important;
  transition: box-shadow .2s ease, border-color .2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .18) !important;
}
.single-contact-box { box-shadow: 0 24px 50px rgba(37, 99, 235, .25); }

/* ---- Footer & misc ------------------------------------------------- */
.footer-area, .footer-section { background-color: var(--xg-dark) !important; }
.scroll-area .go-top, #scroll-up, .scroll-up, .progress-wrap { border-radius: 50% !important; }
.process-number, .process-box-thumb span { background: var(--xg-grad) !important; }

/* Smooth everything a little */
a { transition: color .2s ease; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
