/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child for Haipeweb
 * Template: blocksy
 * Version: 2.3.0
 */

/* ============================================================
   GLOBAL — Tokens
   ============================================================ */
:root {
  --hw-bg:       #0b0d12;
  --hw-text:     #ffffff;
  --hw-muted:    rgba(255,255,255,0.45);
  --hw-primary:  #5b8cff;
  --hw-accent:   #a855f7;
  --hw-cyan:     #00f0ff;
  --hw-surface:  rgba(255,255,255,0.04);
  --hw-border:   rgba(255,255,255,0.08);
  --hw-radius:   20px;
}

body { background: var(--hw-bg); color: var(--hw-text); }

/* ============================================================
   GLOBAL — 3D Canvas
   ============================================================ */
#bg-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* ============================================================
   GLOBAL — Custom cursor
   ============================================================ */
.custom-cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; }
.cursor-dot    { width: 6px; height: 6px; background: #fff; border-radius: 50%; position: absolute; transform: translate(-50%,-50%); }
.cursor-circle { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; position: absolute; transform: translate(-50%,-50%); transition: width .3s, height .3s, border-color .3s; }
.custom-cursor.active .cursor-circle { width: 56px; height: 56px; border-color: var(--hw-primary); }

/* ============================================================
   GLOBAL — Shared components
   ============================================================ */
.hw-gradient {
  background: linear-gradient(135deg, var(--hw-primary), var(--hw-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bento-card, .hw-card, .t-card { overflow: hidden;
  background: var(--hw-surface);
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius);
  backdrop-filter: blur(12px);
  transition: border-color .35s, box-shadow .35s;
}
.bento-card:hover, .hw-card:hover, .t-card:hover {
  border-color: rgba(91,140,255,.3);
  box-shadow: 0 20px 60px rgba(91,140,255,.12);
}

.hw-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px;
  font-size: .82rem; font-weight: 600; letter-spacing: .8px; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .28s, box-shadow .28s;
}
.hw-btn-primary { background: linear-gradient(135deg,var(--hw-primary),var(--hw-accent)); color: #fff; box-shadow: 0 0 30px rgba(91,140,255,.35); }
.hw-btn-primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 0 60px rgba(91,140,255,.6); color: #fff; }
.hw-btn-ghost   { background: transparent; color: rgba(255,255,255,.65); border: 1.5px solid rgba(255,255,255,.2); }
.hw-btn-ghost:hover   { transform: translateY(-3px); border-color: rgba(255,255,255,.5); color: #fff; }
.hw-btn-outline { background: transparent; color: rgba(255,255,255,.7); border: 1.5px solid rgba(255,255,255,.25); }
.hw-btn-outline:hover { border-color: rgba(255,255,255,.6); color: #fff; transform: translateY(-2px); }

/* Also support old class names from local project HTML */
.btn.cta { background: linear-gradient(135deg,var(--hw-primary),var(--hw-accent)); color: #fff; box-shadow: 0 0 30px rgba(91,140,255,.35); display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 50px; font-size: .82rem; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; text-decoration: none; border: none; transition: transform .28s, box-shadow .28s; }
.btn.cta:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 0 60px rgba(91,140,255,.6); color: #fff; }
.btn.btn-ghost { background: transparent; color: rgba(255,255,255,.65); border: 1.5px solid rgba(255,255,255,.2); display: inline-flex; align-items: center; padding: 14px 32px; border-radius: 50px; font-size: .82rem; font-weight: 600; text-transform: uppercase; text-decoration: none; transition: transform .28s, border-color .28s; }
.btn.btn-ghost:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.5); color: #fff; }
.btn.p-btn { background: transparent; color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.2); display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; border-radius: 50px; font-size: .78rem; font-weight: 600; text-transform: uppercase; text-decoration: none; transition: border-color .25s, color .25s; }
.btn.p-btn:hover { border-color: var(--hw-primary); color: #fff; box-shadow: 0 0 20px rgba(91,140,255,.3); }
.btn-secondary { display: inline-block; padding: 12px 28px; border-radius: 50px; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.7); font-size: .82rem; font-weight: 600; text-decoration: none; letter-spacing: .5px; text-transform: uppercase; transition: border-color .25s, color .25s; }
.btn-secondary:hover { border-color: var(--hw-primary); color: #fff; }
.btn-text { display: inline-flex; align-items: center; gap: 6px; color: var(--hw-primary); font-size: .85rem; font-weight: 600; text-decoration: none; transition: gap .2s; }
.btn-text:hover { gap: 10px; }

.text-gradient {
  background: linear-gradient(135deg, var(--hw-primary), var(--hw-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: clamp(2rem,4.5vw,3.5rem); font-weight: 800; letter-spacing: -1.5px; color: #fff; margin: 0 0 1rem; }

/* ============================================================
   SITEORIGIN — Panel resets
   ============================================================ */
.panel-layout { position: relative; z-index: 10; }
.panel-grid   { margin: 0 !important; padding: 0 !important; }
.so-panel     { margin: 0 !important; padding: 0 !important; }

/* ============================================================
   HOMEPAGE — Blocksy spacing reset
   ============================================================ */
body.haipeweb-homepage main#main,
body.haipeweb-homepage .site-main,
body.haipeweb-homepage .ct-container-full { padding-top: 0 !important; margin-top: 0 !important; }
body.haipeweb-homepage .entry-content    { display: block !important; padding-top: 0 !important; }
body.haipeweb-homepage .entry-header,
body.haipeweb-homepage .hero-section,
body.haipeweb-homepage .page-title       { display: none !important; }
body.haipeweb-homepage .panel-layout     { margin-top: 0 !important; }
body.haipeweb-homepage [data-vertical-spacing] { --theme-spacing-top: 0px !important; }

/* ============================================================
   HOMEPAGE — Row base
   ============================================================ */
.hw-row-hero, .hw-row-services, .hw-row-trust, .hw-row-process,
.hw-row-portfolio, .hw-row-why, .hw-row-reviews, .hw-row-blog,
.hw-row-cta, .hw-row-footer { position: relative; z-index: 10; }

/* ============================================================
   HOMEPAGE — Hero
   ============================================================ */
.hero.hero-3d {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 80px 80px;
  overflow: hidden;
  box-sizing: border-box;
}
.hero-content { max-width: 600px; position: relative; z-index: 2; }
.hero-title {
  font-size: clamp(3rem,7vw,6.2rem);
  font-weight: 800; line-height: 1.04;
  letter-spacing: -2.5px; color: #fff;
  margin: 0 0 1.4rem;
}
.hero-subtitle {
  font-size: .85rem; letter-spacing: 3px;
  color: var(--hw-primary); text-transform: uppercase;
  font-weight: 500; margin: 0 0 2.4rem;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-visual  { position: absolute; right: 0; top: 0; width: 55%; height: 100%; pointer-events: none; z-index: 1; }

.scroll-hint {
  position: absolute; bottom: 40px; left: 80px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.3); font-size: .7rem;
  letter-spacing: 3px; text-transform: uppercase;
  animation: hw-bounce 2s ease-in-out infinite; z-index: 2;
}
.mouse-icon  { width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,.25); border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.mouse-wheel { width: 3px; height: 7px; background: rgba(255,255,255,.4); border-radius: 2px; animation: hw-wheel 1.5s ease-in-out infinite; }
@keyframes hw-wheel  { 0%{transform:translateY(0);opacity:1;} 100%{transform:translateY(8px);opacity:0;} }
@keyframes hw-bounce { 0%,100%{transform:translateY(0);} 50%{transform:translateY(8px);} }

#service-action-container { z-index: 1000; }

/* ============================================================
   HOMEPAGE — Services Timeline
   ============================================================ */
.services { padding: 120px 80px; }

.services-timeline {
  position: relative; max-width: 900px;
  margin: 0 auto; display: flex;
  flex-direction: column; gap: 60px;
}
.timeline-line {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg,transparent,rgba(91,140,255,.4) 20%,rgba(168,85,247,.4) 80%,transparent);
  transform: translateX(-50%);
}
.timeline-item { display: flex; align-items: flex-start; gap: 40px; position: relative; width: 45%; }
.timeline-item--left  { align-self: flex-start; margin-right: auto; }
.timeline-item--right { align-self: flex-end; margin-left: auto; flex-direction: row-reverse; }

.timeline-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ring-color, var(--hw-primary));
  box-shadow: 0 0 20px var(--ring-color, var(--hw-primary));
  position: absolute; top: 24px; z-index: 2;
  transition: transform .3s, box-shadow .3s;
}
.timeline-item--left  .timeline-dot { right: -60px; }
.timeline-item--right .timeline-dot { left:  -60px; }

.service-card { padding: 32px; display: flex; gap: 20px; align-items: flex-start; }
.service-info h3 { font-size: 1.15rem; font-weight: 700; color: #fff; margin: 0 0 .5rem; }
.service-info p  { font-size: .9rem; color: var(--hw-muted); line-height: 1.7; margin: 0; }

/* ============================================================
   HOMEPAGE — Trust
   ============================================================ */
.trust {
  padding: 60px 80px;
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.section-label { text-align: center; font-size: .78rem; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.35); margin: 0 0 28px; }
.logo-grid { display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap; }
.logo-item { font-size: 1.1rem; font-weight: 700; letter-spacing: 1px; color: rgba(255,255,255,.18); text-transform: uppercase; transition: color .3s; }
.logo-item:hover { color: rgba(255,255,255,.55); }

/* ============================================================
   HOMEPAGE — Process
   ============================================================ */
.process { padding: 120px 80px; }

.timeline {
  display: flex; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; position: relative;
}
.progress-line {
  position: absolute; top: 28px; left: 40px; right: 40px;
  height: 1px; background: rgba(255,255,255,.08); z-index: 0;
}
.progress-line-fill { height: 100%; width: 0; background: linear-gradient(90deg,var(--hw-primary),var(--hw-accent)); transition: width 1.5s ease; }

.timeline-step {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  padding: 0 16px; text-align: center; position: relative; z-index: 1;
}
.step-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--hw-primary); transition: background .3s, border-color .3s, box-shadow .3s;
}
.step-icon:hover { background: rgba(91,140,255,.1); border-color: var(--hw-primary); box-shadow: 0 0 20px rgba(91,140,255,.3); }
.step-icon svg { width: 22px; height: 22px; }
.step-num {
  font-size: 2rem; font-weight: 800; letter-spacing: -1px; line-height: 1;
  background: linear-gradient(135deg,var(--hw-primary),var(--hw-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.step-content h3 { font-size: .95rem; font-weight: 700; color: #fff; margin: 0 0 4px; }
.step-content p  { font-size: .82rem; color: var(--hw-muted); line-height: 1.6; margin: 0; }
.glow-text { background: linear-gradient(135deg,var(--hw-primary),var(--hw-accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ============================================================
   HOMEPAGE — Portfolio (PostLoop - loop-projects.php)
   ============================================================ */
.portfolio { padding: 120px 80px; }

.portfolio-horizontal-container {
  overflow-x: auto; scrollbar-width: none;
  cursor: grab; -webkit-overflow-scrolling: touch;
}
.portfolio-horizontal-container:active { cursor: grabbing; }
.portfolio-horizontal-container::-webkit-scrollbar { display: none; }

.portfolio-track { display: flex; gap: 28px; padding-bottom: 16px; width: max-content; }

.portfolio-panel { width: min(80vw,600px); flex-shrink: 0; }
.portfolio-card  { overflow: hidden; display: flex; flex-direction: column; height: 480px; }

.p-image {
  flex: 1; overflow: hidden;
  background: linear-gradient(135deg,rgba(91,140,255,.15),rgba(168,85,247,.15));
}
.p-image img { width: 100%; height: 100%; object-fit: cover; }
.p-image--placeholder { flex: 1; background: linear-gradient(135deg,rgba(91,140,255,.15),rgba(168,85,247,.15)); }

.p-info         { padding: 28px; border-top: 1px solid rgba(255,255,255,.06); }
.p-info-content h3 { font-size: 1.3rem; font-weight: 700; color: #fff; margin: 0 0 12px; }
.p-services  { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.p-service-tag { padding: 4px 12px; border-radius: 20px; background: rgba(91,140,255,.12); border: 1px solid rgba(91,140,255,.25); color: var(--hw-primary); font-size: .75rem; font-weight: 500; letter-spacing: .5px; }

/* ============================================================
   HOMEPAGE — Why Us
   ============================================================ */
.why-us-pin-section { padding: 120px 80px; }

.why-us-container {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 60px; max-width: 1100px; margin: 0 auto;
}
.why-us-left { position: sticky; top: 120px; align-self: start; }
.why-us-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.why-us-list li {
  padding: 14px 20px; border-radius: 12px;
  font-size: .92rem; font-weight: 600;
  color: rgba(255,255,255,.35); cursor: pointer;
  border-left: 2px solid transparent;
  transition: color .25s, background .25s, border-color .25s;
}
.why-us-list li.active { color: #fff; background: rgba(91,140,255,.08); border-left-color: var(--hw-primary); }

.why-us-right { position: relative; min-height: 320px; }
.why-us-slide {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity .4s, transform .4s; transform: translateY(20px);
}
.why-us-slide.active { opacity: 1; pointer-events: auto; transform: translateY(0); position: relative; }

.vision-card { padding: 40px; min-height: 280px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.v-icon { color: var(--hw-primary); }
.v-icon svg { width: 48px; height: 48px; }
.vision-card h4 { font-size: 1.4rem; font-weight: 700; color: #fff; margin: 0; }
.vision-card p  { font-size: 1rem; color: var(--hw-muted); line-height: 1.75; margin: 0; }

/* ============================================================
   HOMEPAGE — Google Reviews
   ============================================================ */
.google-reviews { padding: 120px 80px; }

.reviews-layout {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 40px; max-width: 1100px; margin: 0 auto; align-items: start;
}
.google-rating-summary { padding: 36px 28px; display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.g-score {
  font-size: 3.5rem; font-weight: 800; letter-spacing: -2px; line-height: 1;
  background: linear-gradient(135deg,var(--hw-primary),var(--hw-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.g-stars-summary { display: flex; gap: 4px; }
.g-stars-summary svg { width: 22px; height: 22px; }
.g-review-count { font-size: .8rem; color: rgba(255,255,255,.35); margin: 0; }
.g-powered { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--hw-muted); }
.g-review-btn { width: 100%; text-align: center; margin-top: 8px; }

.reviews-slider-container { display: flex; align-items: center; gap: 16px; }
.reviews-track { display: flex; gap: 20px; flex: 1; overflow: hidden; }

.google-review-card { min-width: 300px; flex-shrink: 0; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.gr-header { display: flex; align-items: center; gap: 12px; }
.gr-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.gr-user-info h4 { font-size: .9rem; font-weight: 600; color: #fff; margin: 0 0 2px; }
.gr-user-info span { font-size: .75rem; color: rgba(255,255,255,.35); }
.gr-google-icon { margin-left: auto; }
.gr-stars { display: flex; gap: 3px; }
.gr-text { font-size: .88rem; color: rgba(255,255,255,.6); line-height: 1.7; margin: 0; }

.slider-btn { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.6); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: background .2s, border-color .2s; }
.slider-btn svg { width: 18px; height: 18px; }
.slider-btn:hover { background: rgba(91,140,255,.15); border-color: var(--hw-primary); color: #fff; }

/* ============================================================
   HOMEPAGE — Blog (PostLoop - loop-posts.php)
   ============================================================ */
.blog-section { padding: 120px 80px; }
.blog-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 28px; max-width: 1100px; margin: 0 auto;
}
.blog-card { overflow: hidden; display: flex; flex-direction: column; }
.blog-card-image { position: relative; height: 220px; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-category { position: absolute; top: 16px; left: 16px; padding: 4px 12px; border-radius: 20px; background: rgba(91,140,255,.85); color: #fff; font-size: .72rem; font-weight: 600; text-transform: uppercase; }
.blog-content  { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-meta     { display: flex; gap: 8px; align-items: center; font-size: .75rem; color: rgba(255,255,255,.35); }
.blog-title    { font-size: 1rem; font-weight: 700; color: #fff; margin: 0; line-height: 1.4; }
.blog-title a  { color: #fff; text-decoration: none; }
.blog-title a:hover { color: var(--hw-primary); }
.blog-excerpt  { font-size: .85rem; color: var(--hw-muted); line-height: 1.65; margin: 0; flex: 1; }
.text-center   { text-align: center; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.3); display: inline-block; }

/* ============================================================
   HOMEPAGE — Final CTA
   ============================================================ */
.final-cta {
  padding: 120px 80px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.cta-mesh-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 50%,rgba(91,140,255,.12),transparent 70%); pointer-events: none; }
.cta-content { position: relative; text-align: center; padding: 80px 60px; max-width: 700px; width: 100%; }
.cta-content h2 { font-size: clamp(2rem,5vw,3.8rem); font-weight: 800; letter-spacing: -2px; color: #fff; margin: 0 0 1.2rem; }
.cta-subtitle   { font-size: 1.05rem; color: var(--hw-muted); margin: 0 0 2.5rem; }

/* ============================================================
   MENTENANTA WEB
   ============================================================ */
body.mentenanta-3d-page .entry-content,
body.mentenanta-3d-page .page-content { padding: 0 !important; max-width: 100% !important; }
body.mentenanta-3d-page .panel-grid   { margin: 0 !important; padding: 0 !important; }
body.mentenanta-3d-page .so-panel     { margin: 0 !important; padding: 0 !important; }
body.mentenanta-3d-page .so-row-hero  { position: relative; min-height: 100vh; z-index: 10; }
body.mentenanta-3d-page .so-row-section-title,
body.mentenanta-3d-page .so-row-cards,
body.mentenanta-3d-page .so-row-why,
body.mentenanta-3d-page .so-row-stats,
body.mentenanta-3d-page .so-row-contact { position: relative; z-index: 10; padding: 80px 40px !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .why-us-container, .reviews-layout { grid-template-columns: 1fr; }
  .why-us-left { position: static; }
  .why-us-list { flex-direction: row; flex-wrap: wrap; }
  .blog-grid   { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .hero.hero-3d { padding: 100px 24px 80px; }
  .services, .process, .why-us-pin-section, .google-reviews, .blog-section, .final-cta { padding: 80px 24px; }
  .trust, .portfolio { padding: 50px 24px; }
  .hero-content  { max-width: 100%; }
  .hero-title    { letter-spacing: -1.5px; }
  .hero-actions  { flex-direction: column; align-items: flex-start; }
  .scroll-hint   { left: 24px; }
  .timeline-line { display: none; }
  .timeline-item, .timeline-item--left, .timeline-item--right { width: 100%; align-self: auto; flex-direction: row; margin: 0; }
  .timeline-dot  { display: none; }
  .timeline { flex-direction: column; align-items: center; gap: 32px; }
  .progress-line { display: none; }
  .why-us-container { grid-template-columns: 1fr; }
  .why-us-left { position: static; }
  .blog-grid { grid-template-columns: 1fr; }
  .cta-content { padding: 48px 24px; }
}


/* ============================================================
   HOMEPAGE — Services (missing classes)
   ============================================================ */

/* timeline-content wraps the bento-card inside each timeline item */
.timeline-content { width: 100%; }

/* Ring colour from inline style */
.timeline-item { --ring-color: var(--hw-primary); }
.timeline-dot  { background: var(--ring-color) !important; box-shadow: 0 0 20px var(--ring-color) !important; }
/* ============================================================
   HOMEPAGE — Why Us (original class names)
   ============================================================ */

.why-us-slide {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity .4s, transform .4s;
  transform: translateY(20px);
}
.why-us-slide.active { opacity: 1; pointer-events: auto; transform: translateY(0); position: relative; }

.why-us-list li.active { color: #fff; background: rgba(91,140,255,.08); border-left-color: var(--hw-primary); }

/* ============================================================
   HOMEPAGE — Google Reviews (original class names)
   ============================================================ */

.g-score-container { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.g-score {
  font-size: 3.5rem; font-weight: 800; letter-spacing: -2px; line-height: 1;
  background: linear-gradient(135deg,var(--hw-primary),var(--hw-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.g-stars-summary { display: flex; gap: 4px; }
.g-stars-summary svg { width: 22px; height: 22px; }
.g-review-count { font-size: .8rem; color: rgba(255,255,255,.35); margin: 0; }
.g-powered { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--hw-muted); }
.g-powered span { font-weight: 600; color: #fff; }
.g-review-btn { width: 100%; text-align: center; margin-top: 8px; }

.reviews-slider-container { display: flex; align-items: center; gap: 16px; }
.reviews-track { display: flex; gap: 20px; flex: 1; overflow: hidden; }

.google-review-card { min-width: 300px; flex-shrink: 0; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.gr-header { display: flex; align-items: center; gap: 12px; }
.gr-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.gr-user-info h4 { font-size: .9rem; font-weight: 600; color: #fff; margin: 0 0 2px; }
.gr-user-info span { font-size: .75rem; color: rgba(255,255,255,.35); }
.gr-google-icon { margin-left: auto; }
.gr-stars { display: flex; gap: 3px; }
.gr-text { font-size: .88rem; color: rgba(255,255,255,.6); line-height: 1.7; margin: 0; }
.prev-btn, .next-btn { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.6); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: background .2s, border-color .2s; }
.prev-btn svg, .next-btn svg { width: 18px; height: 18px; }
.prev-btn:hover, .next-btn:hover { background: rgba(91,140,255,.15); border-color: var(--hw-primary); color: #fff; }

/* ============================================================
   HOMEPAGE — Why Us (vision cards)
   ============================================================ */

.vision-card { padding: 40px; min-height: 280px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.v-icon { color: var(--hw-primary); }
.v-icon svg { width: 48px; height: 48px; }
.icon-3d { display: block; }
.vision-card h4 { font-size: 1.4rem; font-weight: 700; color: #fff; margin: 0; }
.vision-card p  { font-size: 1rem; color: var(--hw-muted); line-height: 1.75; margin: 0; }

/* Service icon - constrained size */
.icon { width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--ring-color, var(--hw-primary)); filter: drop-shadow(0 0 8px var(--ring-color, var(--hw-primary))); overflow: hidden; }
.icon svg { width: 44px !important; height: 44px !important; max-width: 44px; max-height: 44px; flex-shrink: 0; }

/* ============================================================
   ADDENDUM v3.0
   • Google Fonts
   • CSS variable aliases (keeps --color-* names from widget HTML)
   • Body / typography baseline
   • Blocksy header glass styling
   • Portfolio GSAP mode (full-bleed, 100vh pinned)
   • Reviews slider (scrollable track)
   • Custom cursor visibility
   • Responsive fixes
   ============================================================ */

/* --- Google Fonts ----------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* --- CSS variable aliases (widget HTML uses --color-*) ------ */
:root {
  --color-bg:         var(--hw-bg,      #0b0d12);
  --color-text:       var(--hw-text,    #ffffff);
  --color-text-muted: var(--hw-muted,   rgba(255,255,255,0.45));
  --color-primary:    var(--hw-primary, #5b8cff);
  --color-accent:     var(--hw-accent,  #a855f7);
  --color-accent-2:   var(--hw-cyan,    #00f0ff);
  --color-surface:    var(--hw-surface, rgba(255,255,255,0.04));
  --color-border:     var(--hw-border,  rgba(255,255,255,0.08));
  --font-display:     'Space Grotesk', system-ui, sans-serif;
  --font-body:        'Inter', system-ui, sans-serif;
  --header-h:         0px; /* JS (hwNav) overwrites this with the real visible header height */
}

/* --- Body baseline ----------------------------------------- */
body.dark-theme {
  font-family: var(--font-body);
  background-color: var(--hw-bg);
  color: var(--hw-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); }

/* --- Blocksy header — glass-nav look ---------------------- */
.ct-header {
  background: rgba(11,13,18,0.78) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  transition: top 0.3s ease;
}
.admin-bar .ct-header { top: 32px !important; }
@media screen and (max-width: 782px) { .admin-bar .ct-header { top: 46px !important; } }

/* Blocksy nav text colours */
.ct-header a,
.ct-header .ct-menu > li > a {
  color: rgba(255,255,255,0.7) !important;
  font-family: var(--font-display) !important;
  transition: color 0.3s !important;
}
.ct-header a:hover,
.ct-header .ct-menu > li > a:hover { color: #fff !important; }
.ct-header .site-title a           { color: #fff !important; font-weight: 800 !important; }

/* --- Custom cursor ----------------------------------------- */
body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor .btn { cursor: none !important; }

@media (pointer: coarse) {
  .custom-cursor { display: none !important; }
  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor .btn { cursor: auto !important; }
}

/* --- Portfolio — GSAP scroll-pinned full-bleed mode --------- */
.portfolio-pin-wrapper { overflow: visible; }

.portfolio {
  height: 100vh !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.portfolio .section-header {
  flex-shrink: 0;
  padding-top: max(160px, 18vh);
  padding-left: 80px;
  padding-right: 80px;
  padding-bottom: 0;
  margin-bottom: 3rem;
  text-align: left;
  position: relative;
  z-index: 10;
}

.portfolio-horizontal-container {
  width: 100%;
  height: 65vh;
  overflow: hidden !important;
  display: flex;
  align-items: center;
  cursor: default;
}

.portfolio-track {
  display: flex;
  height: 100%;
  will-change: transform;
  /* width set by GSAP via transforms, not fixed */
}

.portfolio-panel {
  width: 100vw;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 80px;
}

.portfolio-card {
  width: 100%;
  max-width: 1200px;
  height: 100%;
  background: var(--hw-surface);
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  transition: border-color 0.4s ease, transform 0.4s ease;
}
.portfolio-card:hover { border-color: rgba(91,140,255,0.3); transform: translateY(-5px); }

.p-image {
  flex: 1;
  background: linear-gradient(135deg,rgba(91,140,255,.15),rgba(168,85,247,.15));
  overflow: hidden;
}
.p-image img { width: 100%; height: 100%; object-fit: cover; }
.p-image--placeholder { flex: 1; background: linear-gradient(135deg,rgba(91,140,255,.15),rgba(168,85,247,.15)); }

.p-info {
  flex: 1;
  padding: 3rem 4rem;
  background: rgba(255,255,255,.02);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.p-info-content { width: 100%; }
.p-info h3 {
  font-size: clamp(1.6rem,3vw,2.8rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.8rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

@media (max-width: 1024px) {
  .p-info { padding: 2rem; }
}
@media (max-width: 768px) {
  .portfolio .section-header { padding-left: 24px; padding-right: 24px; }
  .portfolio-panel  { padding: 0 16px; }
  .portfolio-card   { flex-direction: column; }
  .p-image, .p-info { width: 100%; flex: none; }
  .p-image          { height: 50%; }
  .p-info           { height: 50%; padding: 1.5rem; }
  .p-info h3        { font-size: 1.4rem; }
}

/* --- Reviews slider — scrollable track --------------------- */
.reviews-slider-container {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  flex: 1;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.reviews-track::-webkit-scrollbar { display: none; }

.google-review-card {
  flex: 0 0 100%;
  scroll-snap-align: center;
  padding: 2.5rem 3rem;
}

.prev-btn { position: absolute; left: 0;    top: 50%; transform: translateY(-50%); z-index: 20; }
.next-btn { position: absolute; right: 0;   top: 50%; transform: translateY(-50%); z-index: 20; }
.prev-btn, .next-btn { flex-shrink: 0; }

/* --- G-stars fill colour ----------------------------------- */
.gr-stars svg { fill: var(--color-primary, #5b8cff); filter: drop-shadow(0 0 5px rgba(91,140,255,0.5)); }

/* --- GPU layer hints (will-change) ----------------------------------------
   Promotes frequently-animated elements to their own compositor layer so the
   browser doesn’t repaint the rest of the page when they move.
   Only apply to elements that actually animate — overuse wastes GPU memory. */
.portfolio-panel,
.why-us-slide,
.t-card,
.service-card {
  will-change: transform;
}
.cursor-dot,
.cursor-circle {
  will-change: transform;
  pointer-events: none;
}
#bg-canvas {
  will-change: transform;
  transform: translateZ(0); /* force GPU compositing layer */
}

/* contain:layout removed from .portfolio and .why-us-pin-section —
   incompatible with GSAP ScrollTrigger pinning. ScrollTrigger measures
   positions relative to the document root; contain:layout breaks that. */

