/*
Theme Name:   Binfo AI Technologies
Theme URI:    https://binfoai.com
Author:       Binfo AI Technologies
Author URI:   https://binfoai.com
Description:  Premium AI & IT services theme with Bootstrap 5, Lenis smooth scrolling, dynamic Services CPT, Site Settings CPT, off-canvas mobile menu and built-in SEO. Navy / electric-blue / cyan brand palette.
Version:      1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  binfo-ai
Tags:         custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, one-column, two-columns
*/

/* ==========================================================================
   style.css — base styles (resets, typography, buttons, section utilities)
   Loaded after theme.css; header / footer / components / pages are separate.
   ========================================================================== */

/* ---- Lenis smooth scroll (required rules) ---- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--b-ink);
  background: var(--b-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--b-blue); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--b-blue-d); }
ul, ol { padding-left: 0; }
:focus-visible { outline: 2px solid var(--b-cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--b-blue); color: #fff; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--sec-head, var(--b-navy));
}
p { margin-bottom: 1.1rem; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--b-blue); color: #fff; padding: 10px 18px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

.container { max-width: 1240px; }

/* ---- Sections ---- */
.section {
  position: relative;
  padding: clamp(64px, 9vw, 112px) 0;
  background: var(--sec-bg, var(--b-white));
  color: var(--sec-text, var(--b-ink));
  overflow: hidden;
  isolation: isolate;
}
.section p { color: var(--sec-muted, var(--b-muted)); }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 1rem; }
.section-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--sec-muted); max-width: 720px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .78rem/1 var(--font-head);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--b-blue); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--grad-primary); border-radius: 2px; }
.eyebrow-light { color: var(--b-cyan); }

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

/* ---- Buttons ---- */
.btn-binfo {
  --pad-y: 14px; --pad-x: 26px;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: var(--pad-y) var(--pad-x);
  font: 600 .95rem/1 var(--font-head);
  border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; text-decoration: none; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, color .25s, border-color .25s;
}
.btn-binfo i { font-size: .85em; transition: transform .35s var(--ease); }
.btn-binfo:hover i.fa-arrow-right, .btn-binfo:hover i.fa-arrow-up, .btn-binfo:hover i.fa-paper-plane { transform: translateX(4px); }
.btn-binfo-primary { color: #fff; background: var(--grad-primary); box-shadow: 0 10px 28px rgba(8, 124, 240, .35); }
.btn-binfo-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-binfo-primary:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--glow); }
.btn-binfo-primary:hover::after { transform: translateX(120%); }
.btn-binfo-ghost { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.btn-binfo-ghost:hover { color: var(--b-navy); background: #fff; border-color: #fff; transform: translateY(-3px); }
.btn-binfo-light { color: var(--b-navy); background: #fff; }
.btn-binfo-light:hover { color: var(--b-blue); transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-lg-binfo { --pad-y: 17px; --pad-x: 32px; font-size: 1rem; }
.btn-sm-binfo { --pad-y: 11px; --pad-x: 20px; font-size: .88rem; }

/* ---- Reveal-on-scroll (only when JS is active) ---- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ---- WordPress core ---- */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.wp-caption-text, figcaption { font-size: .88rem; color: var(--b-muted); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
