/* ==========================================================================
   WEBER TECH — Public Site Design System
   Palette:  bg #0D0F12 · surface #15181D · surface-2 #1C2027 · border #262B33
             text #ECECEA · text-muted #8B909A · accent #F9A11B
   Type:     Display = Space Grotesk · Body = Inter · Utility/Mono = JetBrains Mono
   Signature: terminal-window hero + monospace "//" eyebrows throughout
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #0D0F12;
  --surface: #15181D;
  --surface-2: #1C2027;
  --border: #262B33;
  --text: #ECECEA;
  --text-muted: #8B909A;
  --accent: #F9A11B;
  --accent-ink: #1A1200;
  --accent-glow: rgba(249, 161, 27, .16);
  --accent-glow-strong: rgba(249, 161, 27, .32);
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'Outfit', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  overflow-x: hidden;
  opacity: 0;
}
body.page-loaded { opacity: 1; transition: opacity .5s ease; }
@media (prefers-reduced-motion: reduce) { body { opacity: 1; } }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--accent); z-index: 2100; transition: width .1s linear;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container-wt { max-width: 1220px; margin: 0 auto; padding: 0 24px; }

/* ---------- Eyebrow / monospace labels (signature detail) ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .9rem;
}
.eyebrow::before { content: '//'; opacity: .6; }

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-tight { padding: 44px 0; }
}

/* ---------- Section background rhythm: alternate pure-black / surface / light ----------
   .section-black  → true black band (deepest contrast against --bg)
   .section-alt    → the existing --surface band (subtle lift)
   .section-light  → a light/white band for the strongest possible break in rhythm
   ------------------------------------------------------------------------------------- */
.section-black { background: #000; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-light {
  background: #F3F1EC;
  color: #14161A;
  border-top: 1px solid #E4E1D8;
  border-bottom: 1px solid #E4E1D8;
}
.section-light h1, .section-light h2, .section-light h3, .section-light h4, .section-light h5 { color: #14161A; }
.section-light p, .section-light .section-head p { color: #5B5F66; }
.section-light .eyebrow { color: #B36F00; }
.section-light .card-wt { background: #fff; border-color: #E4E1D8; }
.section-light .card-wt p { color: #5B5F66; }
.section-light .card-wt h3 { color: #14161A; }
.section-light .card-icon { background: rgba(249,161,27,.12); }
.section-light .tag-pill { border-color: #DEDBD1; color: #5B5F66; }
.section-light .btn-wt-outline { color: #14161A; border-color: #cfccc2; }
.section-light .btn-wt-outline:hover { border-color: var(--accent); color: #B36F00; }
.section-light .counter-label { color: #5B5F66; }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 1rem; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; margin: 0; }

/* ---------- Buttons ---------- */
.btn-wt {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  cursor: pointer;
}
.btn-wt-primary { background: var(--accent); color: var(--accent-ink); }
.btn-wt-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px var(--accent-glow-strong); color: var(--accent-ink); }
.btn-wt-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-wt-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-wt-sm { padding: .65rem 1.3rem; font-size: .85rem; flex-shrink: 0; }

/* ---------- Sticky Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(13, 15, 18, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(13, 15, 18, .96); }
.site-header .container-wt { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: #fff; }
.brand span { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 2.1rem; }
.main-nav a {
  font-size: .92rem; font-weight: 500; color: var(--text-muted);
  position: relative; padding: .3rem 0;
}
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent);
}
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; color: #fff; width: 42px; height: 42px; }

@media (max-width: 991.98px) {
  .main-nav { position: fixed; top: 78px; left: 0; right: 0; bottom: 0; background: var(--bg); flex-direction: column; align-items: flex-start; padding: 2rem 24px; gap: 1.2rem; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; }
}

/* ---------- Hero: Terminal signature ---------- */
.hero { padding: 90px 0 70px; position: relative; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px 400px at 85% 10%, var(--accent-glow), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: center; }
@media (max-width: 991.98px) { .hero-grid { grid-template-columns: 1fr; gap: 3rem; } }

.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); margin: 0 0 1.3rem; }
.hero h1 .accent-text { color: var(--accent); }
.hero p.lead { color: var(--text-muted); font-size: 1.1rem; max-width: 480px; margin-bottom: 2.1rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.terminal-bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .8rem 1rem; background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 11px; height: 11px; border-radius: 50%; opacity: .85; }
.terminal-dot.red { background: #E5534B; } .terminal-dot.yellow { background: #D4A72C; } .terminal-dot.green { background: #57AB5A; }
.terminal-title { margin-left: .6rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: .02em; font-size: .78rem; color: var(--text-muted); }
.terminal-body { padding: 1.6rem; font-family: var(--font-mono); font-weight: 500; font-size: .95rem; min-height: 230px; }
.terminal-line { color: var(--text-muted); margin-bottom: .5rem; }
.terminal-prompt { color: var(--accent); }
.terminal-output { color: #fff; }
.terminal-cursor { display: inline-block; width: 8px; height: 1.1em; background: var(--accent); vertical-align: text-bottom; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Counters ---------- */
.counters { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.counter-item { text-align: center; padding: 2.6rem 1rem; }
.counter-value { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 700; color: var(--accent); }
.counter-label { color: var(--text-muted); font-size: .84rem; margin-top: .4rem; font-family: var(--font-mono); font-weight: 600; letter-spacing: .05em; }

/* ---------- Cards ---------- */
.card-wt {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  height: 100%;
}
.card-wt:hover { transform: translateY(-4px); border-color: rgba(249,161,27,.4); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--accent-glow); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1.3rem;
}
.card-wt h3 { font-size: 1.2rem; margin: 0 0 .6rem; }
.card-wt p { color: var(--text-muted); font-size: .93rem; margin: 0; }

/* ---------- Reveal-on-scroll animation (with stagger support) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(.94); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal-scale.in-view { opacity: 1; transform: scale(1); }
.reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal-left.in-view { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal-right.in-view { opacity: 1; transform: translateX(0); }

/* ---------- Ambient floating motion on the hero terminal ---------- */
.terminal-float { animation: floatY 6s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Animated nav underline (grows from center on hover) ---------- */
.main-nav a:not(.btn-wt)::before {
  content: ''; position: absolute; left: 50%; right: 50%; bottom: -2px; height: 2px; background: var(--accent);
  transition: left .25s ease, right .25s ease;
}
.main-nav a:not(.btn-wt):hover::before { left: 0; right: 0; }
.main-nav a.active::after { display: none; }
.main-nav a.active::before { left: 0; right: 0; }

/* ---------- Subtle pulse on the primary CTA card border ---------- */
@keyframes borderPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 10px transparent; }
}
.pulse-border { animation: borderPulse 2.6s ease-in-out infinite; }

/* ---------- Icon micro-interaction on card hover ---------- */
.card-wt .card-icon { transition: transform .35s cubic-bezier(.3,1.5,.6,1), background .2s ease; }
.card-wt:hover .card-icon { transform: rotate(-6deg) scale(1.08); background: var(--accent-glow-strong); }

/* ---------- Counter section ambient glow sweep ---------- */
.counters { position: relative; overflow: hidden; }
.counters::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  animation: sweep 7s ease-in-out infinite;
}
@keyframes sweep { 0% { left: -40%; } 100% { left: 100%; } }

/* ---------- Portfolio grid ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.filter-btn {
  font-family: var(--font-mono); font-weight: 600; font-size: .82rem; padding: .5rem 1rem;
  border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--text-muted); cursor: pointer;
  transition: all .15s ease;
}
.filter-btn:hover { color: #fff; border-color: var(--text-muted); }
.filter-btn.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.portfolio-item {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: var(--surface); position: relative; cursor: pointer;
}
.portfolio-item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .4s ease; }
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-overlay {
  position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,15,18,.92), transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.3rem;
  opacity: 0; transition: opacity .25s ease;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay .tag { font-family: var(--font-mono); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .72rem; color: var(--accent); margin-bottom: .3rem; }
.portfolio-overlay h4 { font-size: 1.05rem; margin: 0; color: #fff; }

/* ---------- Testimonial / Client sliders ---------- */
.testimonial-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.4rem; max-width: 720px; margin: 0 auto; text-align: center;
}
.testimonial-card p.quote { font-size: 1.15rem; color: #fff; font-style: normal; margin-bottom: 1.5rem; }
.testimonial-avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; margin: 0 auto .8rem; border: 2px solid var(--accent); }
.testimonial-name { font-weight: 600; color: #fff; }
.testimonial-role { color: var(--text-muted); font-size: .85rem; }
.stars { color: var(--accent); letter-spacing: .15em; font-size: .9rem; margin-bottom: .8rem; }

.clients-track {
  display: flex; gap: 3.5rem; align-items: center;
  animation: scrollX 28s linear infinite;
  width: max-content;
}
.clients-track img { height: 34px; filter: grayscale(1) brightness(1.6) opacity(.55); transition: filter .2s ease; }
.clients-track img:hover { filter: grayscale(0) opacity(1); }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.clients-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }

/* ---------- Mega Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: 4.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border); }
@media (max-width: 991.98px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 { font-family: var(--font-mono); font-weight: 700; font-size: .8rem; letter-spacing: .08em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: .65rem; }
.footer-grid ul li a { color: #c7c9cd; font-size: .92rem; }
.footer-grid ul li a:hover { color: var(--accent); }
.footer-bottom { padding: 1.6rem 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--text-muted); font-size: .85rem; }
.social-icons { display: flex; gap: .7rem; }
.social-icons a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.social-icons a:hover { border-color: var(--accent); color: var(--accent); }

.newsletter-form { display: flex; gap: .5rem; margin-top: 1rem; }
.newsletter-form input { flex: 1; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .7rem 1rem; color: #fff; font-size: .9rem; }
.newsletter-form input:focus { outline: none; border-color: var(--accent); }

/* ---------- Floating buttons ---------- */
.float-btn-stack { position: fixed; right: 22px; bottom: 22px; z-index: 1200; display: flex; flex-direction: column; gap: .7rem; align-items: flex-end; }
.float-btn {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; box-shadow: 0 10px 30px rgba(0,0,0,.4); border: none; cursor: pointer;
  transition: transform .15s ease, opacity .2s ease;
}
.float-btn:hover { transform: translateY(-3px); }
.btn-whatsapp { background: #25D366; color: #06280f; }
.btn-scrolltop { background: var(--surface-2); border: 1px solid var(--border); color: #fff; opacity: 0; pointer-events: none; }
.btn-scrolltop.show { opacity: 1; pointer-events: auto; }

/* ---------- Forms (contact etc.) ---------- */
.form-wt label { font-size: .85rem; color: var(--text-muted); margin-bottom: .4rem; display: block; }
.form-wt .form-control, .form-wt .form-select {
  background: var(--surface-2); border: 1px solid var(--border); color: #fff; border-radius: var(--radius-sm);
  padding: .75rem .95rem; font-size: .93rem;
}
.form-wt .form-control:focus, .form-wt .form-select:focus { background: var(--surface-2); color: #fff; border-color: var(--accent); box-shadow: 0 0 0 .2rem var(--accent-glow); }
.form-wt textarea.form-control { min-height: 130px; }

/* ---------- Badges / tags ---------- */
.tag-pill { font-family: var(--font-mono); font-weight: 600; letter-spacing: .02em; font-size: .72rem; padding: .3rem .7rem; border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 70px 0 50px; border-bottom: 1px solid var(--border); position: relative; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 260px at 10% 0%, var(--accent-glow), transparent 70%); }
.breadcrumb-wt { font-family: var(--font-mono); font-weight: 500; font-size: .82rem; color: var(--text-muted); }
.breadcrumb-wt a:hover { color: var(--accent); }

/* ---------- Lightbox ---------- */
.wt-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 2rem; }
.wt-lightbox.open { display: flex; }
.wt-lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.wt-lightbox-close { position: absolute; top: 24px; right: 32px; color: #fff; font-size: 2rem; background: none; border: none; cursor: pointer; }
