/*
Theme Name: IT Sphere Hub
Theme URI: https://itspherehub.com
Author: IT Sphere Hub
Author URI: https://itspherehub.com
Description: Lightweight, fast and SEO-optimized custom WordPress theme for IT Sphere Hub digital marketing agency. Built for Hostinger shared hosting with smooth motion animations and no page-builder bloat.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: itspherehub
Tags: business, marketing, agency, one-column, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. CSS Variables / Design Tokens
   ========================================================================== */
:root {
  --brand-blue: #0a66b4;
  --brand-blue-dark: #0b2f52;
  --brand-blue-darker: #071d33;
  --brand-blue-light: #2a8fe0;
  --brand-gradient: linear-gradient(135deg, #2a8fe0 0%, #0a66b4 45%, #0b2f52 100%);
  --accent: #0a66b4;
  --text: #1a2430;
  --text-light: #5a6572;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --bg-dark: #071d33;
  --border: #e3e9f0;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(11, 47, 82, 0.06);
  --shadow: 0 10px 30px rgba(11, 47, 82, 0.10);
  --shadow-lg: 0 20px 50px rgba(11, 47, 82, 0.14);
  --container: 1180px;
  --space: clamp(3rem, 7vw, 6rem);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-blue-dark); }
ul, ol { padding-left: 1.2rem; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; color: var(--brand-blue-darker); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { color: var(--text-light); }
:focus-visible { outline: 3px solid var(--brand-blue-light); outline-offset: 2px; }

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: var(--space) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #dce7f2; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #a9bdd1; }
.text-center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 0.9rem;
}
.section--dark .eyebrow { color: var(--brand-blue-light); }
.section-head { max-width: 680px; margin: 0 auto 3rem; }
.lead { font-size: 1.15rem; }

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  line-height: 1;
}
.btn--primary { background: var(--brand-gradient); color: #fff; box-shadow: 0 8px 22px rgba(10, 102, 180, 0.35); }
.btn--primary:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10, 102, 180, 0.45); }
.btn--ghost { background: transparent; color: var(--brand-blue); border-color: var(--brand-blue); }
.btn--ghost:hover { background: var(--brand-blue); color: #fff; transform: translateY(-3px); }
.btn--light { background: #fff; color: var(--brand-blue-dark); }
.btn--light:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--brand-blue-dark); }

/* ==========================================================================
   5. Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 0.65rem; font-weight: 800; }
.brand img { height: 48px; width: auto; }
.brand-text { font-size: 1.1rem; color: var(--brand-blue-darker); letter-spacing: -0.02em; }
.brand-text span { color: var(--brand-blue); }
.nav-menu { display: flex; align-items: center; gap: 0.3rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: block;
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  position: relative;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a { color: var(--brand-blue); }
.nav-menu .menu-item-has-children > a::after { content: '▾'; font-size: 0.7rem; margin-left: 0.3rem; opacity: 0.6; }
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
}
.nav-menu .menu-item-has-children { position: relative; }
.nav-menu .menu-item-has-children:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(6px); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--brand-blue-darker); border-radius: 2px; transition: var(--transition); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   6. Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(4rem, 9vw, 6rem);
  background: radial-gradient(1200px 600px at 85% -10%, rgba(42, 143, 224, 0.14), transparent 60%),
              radial-gradient(900px 500px at 0% 110%, rgba(10, 102, 180, 0.10), transparent 55%),
              var(--bg);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 .grad { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.18rem; margin-bottom: 2rem; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.2rem; }
.hero-stats { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--brand-blue); }
.hero-stats .stat span { font-size: 0.9rem; color: var(--text-light); }
.hero-visual { position: relative; }
.hero-visual .orb {
  position: absolute; border-radius: 50%; filter: blur(2px); opacity: 0.5;
  background: var(--brand-gradient); z-index: 0;
}
.hero-card {
  position: relative; z-index: 2;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.6rem;
}
.hero-card .bar { height: 10px; border-radius: 6px; background: var(--bg-alt); margin: 0.5rem 0; }
.hero-card .bar.b1 { width: 90%; } .hero-card .bar.b2 { width: 70%; } .hero-card .bar.b3 { width: 80%; }
.hero-card .metric { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 1rem; }
.hero-card .metric strong { font-size: 2rem; color: var(--brand-blue); }
.hero-card .spark { display: flex; align-items: flex-end; gap: 4px; height: 48px; }
.hero-card .spark i { display: block; width: 8px; background: var(--brand-gradient); border-radius: 3px; }

/* Floating badges */
.float-badge {
  position: absolute; z-index: 3; background: #fff; border: 1px solid var(--border);
  border-radius: 50px; padding: 0.5rem 1rem; box-shadow: var(--shadow);
  font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; gap: 0.5rem;
}
.float-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; }

/* Marquee / trust strip */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); padding: 1.4rem 0; }
.trust p { text-align: center; font-weight: 600; color: var(--text-light); font-size: 0.95rem; letter-spacing: 0.05em; }

/* ==========================================================================
   7. Cards / Grids
   ========================================================================== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem 1.8rem; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cfe0f2; }
.card .icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(42,143,224,0.15), rgba(10,102,180,0.12));
  color: var(--brand-blue); margin-bottom: 1.2rem;
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.98rem; margin-bottom: 1rem; }
.card .card-link { font-weight: 700; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.card .card-link::after { content: '→'; transition: transform var(--transition); }
.card:hover .card-link::after { transform: translateX(4px); }

/* Steps / process */
.step { position: relative; padding-left: 0; }
.step .num {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-gradient); color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 1rem;
}

/* Stats band */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stats-band .stat strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); color: #fff; font-weight: 800; }
.stats-band .stat span { color: #a9bdd1; font-size: 0.95rem; }

/* Testimonials */
.testimonial { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; height: 100%; }
.testimonial .stars { color: #f5b301; margin-bottom: 0.8rem; letter-spacing: 2px; }
.testimonial p { color: var(--text); font-size: 1.02rem; }
.testimonial .who { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.2rem; }
.testimonial .who .av { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-gradient); color: #fff; display: grid; place-items: center; font-weight: 800; }
.testimonial .who b { display: block; color: var(--brand-blue-darker); }
.testimonial .who small { color: var(--text-light); }

/* FAQ */
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.8rem; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 1.2rem 1.4rem; font-size: 1.05rem; font-weight: 700; color: var(--brand-blue-darker); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q .plus { flex: 0 0 auto; transition: transform var(--transition); font-weight: 400; color: var(--brand-blue); }
.faq-item.is-open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--transition); padding: 0 1.4rem; }
.faq-item.is-open .faq-a { max-height: 400px; padding-bottom: 1.3rem; }

/* ==========================================================================
   8. CTA band
   ========================================================================== */
.cta-band { background: var(--brand-gradient); border-radius: calc(var(--radius) * 1.6); padding: clamp(2.5rem, 5vw, 4rem); text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto 1.8rem; font-size: 1.1rem; }
.cta-band .btn { }

/* ==========================================================================
   9. Page hero (inner pages)
   ========================================================================== */
.page-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background: radial-gradient(900px 400px at 80% -20%, rgba(42,143,224,0.15), transparent 60%), var(--bg-alt);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 0.8rem; }
.page-hero p { max-width: 640px; margin: 0 auto; font-size: 1.12rem; }
.breadcrumbs { font-size: 0.88rem; color: var(--text-light); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--brand-blue); }

/* ==========================================================================
   10. Content / single pages
   ========================================================================== */
.entry-content { max-width: 760px; margin: 0 auto; }
.entry-content > * + * { margin-top: 1.2rem; }
.entry-content h2 { margin-top: 2rem; }
.entry-content h3 { margin-top: 1.5rem; }
.entry-content ul, .entry-content ol { color: var(--text-light); }
.entry-content li + li { margin-top: 0.4rem; }
.entry-content img { border-radius: var(--radius); margin: 1.5rem auto; }
.entry-content a { text-decoration: underline; }

/* ==========================================================================
   11. Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.contact-info .info-item { display: flex; gap: 1rem; margin-bottom: 1.6rem; align-items: flex-start; }
.contact-info .info-item .ic { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 12px; background: linear-gradient(135deg, rgba(42,143,224,0.15), rgba(10,102,180,0.12)); color: var(--brand-blue); display: grid; place-items: center; }
.contact-info .info-item h4 { color: var(--brand-blue-darker); margin-bottom: 0.2rem; }
.contact-info .info-item p, .contact-info .info-item a { color: var(--text-light); margin: 0; }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--brand-blue-darker); }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; background: #fff; transition: border-color var(--transition), box-shadow var(--transition);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(10,102,180,0.12); }
.form-row textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--text-light); margin-top: 0.8rem; }
.form-success { background: #e9f9ef; border: 1px solid #b7ebc6; color: #1a7f43; padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; }
.form-error { background: #fdecec; border: 1px solid #f5c2c2; color: #b4232a; padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); line-height: 0; border: 1px solid var(--border); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; }

/* ==========================================================================
   12. About
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.values-list { list-style: none; padding: 0; }
.values-list li { display: flex; gap: 0.8rem; margin-bottom: 1rem; align-items: flex-start; }
.values-list li .tick { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-gradient); color: #fff; display: grid; place-items: center; font-size: 0.8rem; margin-top: 2px; }

/* ==========================================================================
   13. Footer
   ========================================================================== */
.site-footer { background: var(--bg-dark); color: #a9bdd1; padding-top: var(--space); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; letter-spacing: 0.02em; }
.site-footer a { color: #a9bdd1; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 56px; margin-bottom: 1rem; }
.footer-brand p { color: #91a7bd; font-size: 0.95rem; max-width: 320px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.social-row { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.social-row a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.08); display: grid; place-items: center; color: #fff; transition: background var(--transition), transform var(--transition); }
.social-row a:hover { background: var(--brand-blue); transform: translateY(-3px); }
.social-row svg { width: 20px; height: 20px; }
.footer-contact li { display: flex; gap: 0.6rem; margin-bottom: 0.8rem; font-size: 0.95rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; color: var(--brand-blue-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.5rem 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.88rem; }
.footer-bottom a { color: #a9bdd1; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 999; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(37,211,102,0.45); transition: transform var(--transition); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ==========================================================================
   14. Motion / Animations
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.anim-float { animation: floatY 6s ease-in-out infinite; }
@keyframes pulseGlow { 0%,100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   15. Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 1rem; gap: 0; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); transform: translateY(-120%); transition: transform var(--transition);
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav-menu.is-open { transform: translateY(0); }
  .nav-menu a { padding: 0.9rem 0.5rem; border-bottom: 1px solid var(--bg-alt); }
  .nav-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 1rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-actions .btn--primary { display: none; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .brand-text { display: none; }
}
