/*
Theme Name: Ampera Solutions
Theme URI: https://ampera.solutions
Author: Ampera Solutions sp. z o.o.
Description: Ampera Solutions — Innovating the Digital Future
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ampera
*/
:root {
  --gold: #B07520;
  --amber: #C8860A;
  --deep: #FAFAFA;
  --deep2: #F0F0F0;
  --glass: rgba(0,0,0,0.03);
  --glass-border: rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; scroll-padding-top: 70px; }

body {
  background: var(--deep);
  color: #1a1208;
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  -webkit-overflow-scrolling: auto;
}

/* JS-aware root: used to enable loader and animations only when JS runs */
body.js-enabled #loader { display: flex; }
/* Hide loader by default so content is visible when JS is disabled */
#loader { display: none; }

h1, h2, h3, h4, .brand { font-family: 'Syne', sans-serif; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--deep2); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* LOADER */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #FAFAFA;
  transition: opacity 1.1s cubic-bezier(0.4,0,0.2,1) 0.1s, transform 1.2s cubic-bezier(0.4,0,0.2,1) 0.1s;
}
#loader.fade-out {
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
}
.loader-ring {
  width: 64px; height: 64px;
  border: 2px solid rgba(200,138,51,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* loader brand text */
.loader-brand {
  margin-top: 1.4rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(200,138,51,0.6);
  animation: loaderPulse 1.6s ease-in-out infinite alternate;
}
@keyframes loaderPulse {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}

/* loader ambient glow */
#loader::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 40% at 50% 50%, rgba(200,90,20,0.07), transparent 70%);
  pointer-events: none;
}

/* SCAN LINE */
#scan-line {
  position: fixed; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  box-shadow: 0 0 20px 4px rgba(240,193,75,0.55);
  z-index: 48; top: 0; opacity: 0;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.4rem 2.5rem;
  transition: all 0.3s, opacity 0.5s ease, transform 0.5s ease;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(250,250,250,0.95), transparent);
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}
nav .nav-links { color: rgba(26,18,8,0.55); }

/* Brand link/logo */
.brand-link img { max-height: 30px; display: block; }

/* Language switcher */
/* ── LANGUAGE SWITCHER ──────────────────────────────────── */
#lang-switcher,
.lang-switcher-pll {
  display: flex;
  gap: 0;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  overflow: hidden;
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
}

/* covers both <button> (fallback) and <a> (Polylang) */
#lang-switcher button,
#lang-switcher a,
.lang-switcher-pll a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  background: transparent;
  color: rgba(26,18,8,0.45);
  border: 0;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.08em;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

#lang-switcher button:hover,
#lang-switcher a:hover,
.lang-switcher-pll a:hover {
  background: rgba(176,117,32,0.1);
  color: var(--gold);
}

/* active state — covers WP class variants Polylang may output */
#lang-switcher button.active,
#lang-switcher a.active,
#lang-switcher a.lang-current,
#lang-switcher a.current-lang,
#lang-switcher a[aria-current],
.lang-switcher-pll a.active,
.lang-switcher-pll a.lang-current,
.lang-switcher-pll a.current-lang,
.lang-switcher-pll a[aria-current] {
  background: var(--gold);
  color: #1a1208 !important;
}

/* Mobile menu appearance when shown (mob-menu remains hidden by default via class) */
.mob-menu { background:rgba(245,243,238,0.98); backdrop-filter:blur(20px); }
.mob-close { color:rgba(26,18,8,0.5); }

/* CTA icons default sizes and overrides */
i[data-lucide] { width:12px; height:12px; display:inline-block; }
.icon-lg { width:15px; height:15px; }
.icon-xl { width:16px; height:16px; }

/* Particle canvas placements (moved from inline) */
#particle-layer { position: absolute; inset: 0; z-index: 20; pointer-events: none; isolation: isolate; }
#pc-tl { left:0; top:0; width:20vw; height:25vh; }
#pc-tr { right:0; top:0; width:20vw; height:25vh; }
#pc-bl { left:0; bottom:0; width:20vw; height:25vh; }
#pc-br { right:0; bottom:0; width:20vw; height:25vh; }
#pc-ct { left:30vw; top:0; width:40vw; height:12vh; }
#pc-cb { left:30vw; bottom:0; width:40vw; height:12vh; }
.pcanvas { position:absolute; z-index:20; pointer-events:none; opacity:1; }

/* Decorative backgrounds */
.decor-bg-radial { position:absolute; inset:0; pointer-events:none; }
.decor-bg-radial.services { background:radial-gradient(circle at 20% 80%, rgba(200,138,51,0.04) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(200,138,51,0.04) 0%, transparent 50%); }
.decor-bg-radial.contact { background:radial-gradient(circle at 50% 100%, rgba(200,138,51,0.05) 0%, transparent 60%); }
.decor-bg-radial.about { position:absolute; top:-100px; left:50%; transform:translateX(-50%); width:500px; height:500px; background:radial-gradient(circle, rgba(200,138,51,0.05) 0%, transparent 70%); pointer-events:none }

/* Kicker / small uppercase label */
.kicker { font-size:0.75rem; font-family:'Syne',sans-serif; letter-spacing:0.2em; color:var(--gold); font-weight:600; margin-bottom:0.75rem }
.section-h2 { font-family:'Syne',sans-serif; font-weight:800; font-size:clamp(1.8rem,3.5vw,2.8rem); margin-bottom:0.75rem }
.section-lead { color:rgba(26,18,8,0.5); max-width:480px; margin:0 auto; font-size:0.95rem }
.section-lead { margin-bottom: 2rem; }

.pos-rel { position: relative; }

.stats-grid { display:grid; grid-template-columns:1fr 1fr; gap:2rem; }
.stat-desc { font-size:0.8rem; color:rgba(26,18,8,0.55); margin-top:0.3rem; font-family:'DM Sans' }

.gold-line { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.25; margin: 2rem 0; }
.gold-line.small { margin-bottom:1.5rem }

.quote { font-size:0.875rem; color:rgba(26,18,8,0.4); line-height:1.65; font-style:italic }

.accent-blob { position:absolute; top:-60px; right:-60px; width:180px; height:180px; background:var(--gold); border-radius:50%; filter:blur(100px); opacity:0.06 }

.subhead { font-size:0.7rem; letter-spacing:0.15em; color:var(--gold); font-family:'Syne',sans-serif; font-weight:700; margin-bottom:0.6rem }

.about-lead { font-size:1.05rem; color:rgba(26,18,8,0.65); line-height:1.75; margin-bottom:1.5rem }
.muted { color:rgba(26,18,8,0.5); font-size:0.9rem; line-height:1.6; font-family:'DM Sans' }

.brand-strong { color:var(--gold); font-family:'Syne',sans-serif; font-weight:700; display:inline-block; margin-right:6px }

.contact-list { display:flex; flex-direction:column; gap:1rem }
.contact-meta { font-size:0.75rem; color:rgba(26,18,8,0.4); margin-bottom:0.2rem }
.contact-value { color:#1a1208; font-size:0.9rem }

.contact-lead { color:rgba(26,18,8,0.55); font-size:0.95rem; margin-bottom:1.5rem; max-width:400px; line-height:1.7 }
.contact-link { display:flex; align-items:center; gap:1rem; padding:1rem; border-radius:14px }

.form-row { margin-bottom:1rem }
.form-row.textarea { margin-bottom:1.2rem }

.muted.mono { font-family: 'DM Mono', monospace }


/* Card icon common */
.card-icon { width:44px; height:44px; border-radius:12px; background:rgba(200,138,51,0.1); display:flex; align-items:center; justify-content:center; margin-bottom:1.2rem; transition:background 0.3s }
.card-title { font-family:'Syne',sans-serif; font-weight:700; font-size:1.05rem; margin-bottom:0.5rem }
.card-desc { color:rgba(26,18,8,0.55); font-size:0.875rem; line-height:1.6 }

.card-icon i[data-lucide] { width:20px; height:20px; color:var(--gold); }
/* Ensure Lucide SVGs inherit the same gold color and use it for stroke */
.card-icon svg { width:20px; height:20px; color: var(--gold); stroke: currentColor !important; fill: none !important; }
.card-icon svg * { stroke: currentColor !important; fill: none !important; }

/* Features list (solutions check list) */
.features-list { display:flex; flex-direction:column; gap:1rem; margin-bottom:2.5rem }
.features-list .check-icon { width:24px; height:24px; border-radius:50%; background:var(--gold); display:flex; align-items:center; justify-content:center; flex-shrink:0 }
.features-list .check-icon i[data-lucide] { width:14px; height:14px; color:#000 }
.features-list span { font-size:0.95rem }

/* Stats visual tweaks */
.decor-ring { position:absolute; border-radius:50%; }
.decor-ring.r1 { top:-80px; right:-80px; width:260px; height:260px; border:1px solid rgba(200,138,51,0.08); animation:spin 20s linear infinite }
.decor-ring.r2 { top:-50px; right:-50px; width:200px; height:200px; border:1px solid rgba(200,138,51,0.05); animation:spin 15s linear infinite reverse }

/* Contact list item hover (replaces inline onmouseover/out) */
.contact-list a.contact-link { display:flex; align-items:center; gap:1rem; padding:1rem; border-radius:14px; border:1px solid transparent; transition:all 0.25s; text-decoration:none }
.contact-list a.contact-link:hover { border-color:rgba(200,138,51,0.3); background:rgba(200,138,51,0.05) }
.contact-list .icon-round { width:44px; height:44px; border-radius:50%; background:rgba(255,255,255,0.7); border:1px solid rgba(0,0,0,0.1); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
/* Icon color/size copied from icons.html */
.contact-list .icon-round i[data-lucide],
.contact-list .icon-round svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}
/* Ensure Lucide SVG strokes/fills use the current color */
.contact-list .icon-round svg { stroke: currentColor !important; fill: none !important; }
.contact-list .icon-round svg * { stroke: currentColor !important; fill: none !important; }

/* Form card padding variation */
.g-card.pad-2 { padding:2rem }

/* Footer */
.site-footer { margin-top:1.5rem; padding-top:1.2rem; border-top:1px solid rgba(0,0,0,0.08); display:flex; flex-direction:column; gap:0.5rem; align-items:center; text-align:center }
.site-footer p { font-size:0.8rem; color:rgba(26,18,8,0.3); }
.site-footer a { font-size:0.8rem; color:rgba(26,18,8,0.3); text-decoration:none }
/* Footer links layout (match icons.html styles) */
.footer-links { display:flex; gap:2rem; align-items:center; justify-content:center; }
.footer-links a { color: rgba(26,18,8,0.3); text-decoration:none }

nav.nav-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
nav.scrolled {
  padding: 0.9rem 2.5rem;
  background: rgba(250,250,250,0.95);
  border-bottom: 1px solid var(--glass-border);
}

/* STICKY CTA BAR */
#cta-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  display: flex;
  align-items: stretch;
  background: rgba(250,250,250,0.97);
  border-bottom: 1px solid rgba(176,117,32,0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
#cta-bar.bar-visible {
  opacity: 1;
  pointer-events: auto;
}
.cta-bar-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 1rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  border: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.cta-bar-btn svg, .cta-bar-btn i { flex-shrink: 0; }
.cta-bar-btn.primary {
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 14px rgba(200,138,51,0.3);
}
.cta-bar-btn.primary:hover { background: var(--amber); transform: scale(1.04); }
.cta-bar-btn.ghost {
  background: rgba(0,0,0,0.04);
  color: rgba(26,18,8,0.6);
  border: 1px solid rgba(0,0,0,0.1);
}
.cta-bar-btn.ghost:hover { border-color: rgba(176,117,32,0.4); color: #1a1208; }
.cta-bar-label {
  font-size: 0.7rem;
  font-family: 'DM Sans', sans-serif;
  color: rgba(26,18,8,0.35);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* HERO CTA AREA — sits directly above scroll hint */
.hero-cta-wrap {
  position: absolute;
  bottom: 7rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeInUp 0.9s ease 1.8s forwards;
  white-space: nowrap;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
/* Hero CTA buttons — compact pill size */
.hero-cta-wrap .btn-primary,
.hero-cta-wrap .btn-outline {
  padding: 0.7rem 1.2rem !important;
  font-size: 0.9rem !important;
  gap: 0.6rem !important;
}
.hero-cta-wrap i[data-lucide] { width: 12px !important; height: 12px !important; }

/* SECTION CTA ROW */
.sec-cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

/* ── SWIPEABLE NAV CTA BAR ── */
.cta-bar-track-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
  padding: 0.42rem 0.75rem;
  position: relative;
}
.cta-bar-track {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  padding: 0.1rem 0.15rem;
}
.cta-bar-track::-webkit-scrollbar { display: none; }
.cta-bar-track .cta-bar-btn { scroll-snap-align: start; flex-shrink: 0; }
/* right-side fade hint */
.cta-bar-track-wrap::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 36px;
  background: linear-gradient(to right, transparent, rgba(250,250,250,0.97));
  pointer-events: none;
  z-index: 2;
}
/* Active section pill highlight */
.cta-bar-btn.active {
  background: var(--gold) !important;
  color: #000 !important;
  border-color: transparent !important;
  box-shadow: 0 0 14px rgba(200,138,51,0.4);
}
/* Divider between sections and primary CTA */
.cta-bar-divider {
  width: 1px;
  height: 18px;
  background: rgba(0,0,0,0.1);
  flex-shrink: 0;
  margin: 0 0.2rem;
}

/* RESPONSIVE: tablet ≤768px */
@media (max-width: 768px) {
  .cta-bar-label { display: none; }

  /* Hero CTAs — keep side by side, still compact */
  .hero-cta-wrap { bottom: 8rem; gap: 0.4rem; }

  /* Section CTA rows — stack + stretch */
  .sec-cta-row {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .sec-cta-row .btn-primary,
  .sec-cta-row .btn-outline {
    width: 100%;
    justify-content: center;
  }
}

/* RESPONSIVE: small phones ≤480px */
@media (max-width: 480px) {
  .hero-cta-wrap { bottom: 8rem; }
  nav { padding: 1rem 1.25rem; }
  nav.scrolled { padding: 0.75rem 1.25rem; }
}

/* SECTIONS — 3-phase sticky: slide in → inner scroll → slide out */
.section-wrap { position: relative; width: 100%; }

/* Spacer sits AFTER each section in flow; its height = inner overflow.
   Scrolling through it drives the inner content scroll via JS. */
.sec-spacer { width: 100%; }

.sticky-sec {
  position: sticky; top: 0;
  width: 100%; height: 100vh;
  overflow: hidden;
  background: var(--deep);
  box-shadow: 0 -12px 40px rgba(0,0,0,0.18), 0 12px 40px rgba(0,0,0,0.12);
  display: flex; flex-direction: column;
  will-change: transform;
  isolation: isolate;
}

/* Inner content area — JS-driven scroll container */
.sec-inner {
  flex: 1;
  min-height: 0;             /* critical: lets flex child shrink so overflow-y works */
  overflow-y: scroll;
  overscroll-behavior: none;
  padding: 100px 0 60px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center; /* falls back to flex-start when content overflows, preventing clipping */
}

/* Hide scrollbars on sec-inner — JS drives scrollTop, no visual bar */
.sec-inner::-webkit-scrollbar { display: none; }
.sec-inner { -ms-overflow-style: none; scrollbar-width: none; }

/* Hero has no sec-inner */
#s-home {
  background: radial-gradient(circle at 50% 60%, #FDF6EC 0%, var(--deep) 65%);
  z-index: 10;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s ease 0.6s, transform 1.4s cubic-bezier(0.33,1,0.68,1) 0.4s;
}
body.revealed #s-home { opacity: 1; transform: scale(1); }
#s-services { z-index: 20; background: #FAFAFA; content-visibility: auto; contain-intrinsic-size: 0 100vh; }
#s-solutions { background: linear-gradient(180deg, #FAFAFA 0%, #FDF6EC 100%); z-index: 30; content-visibility: auto; contain-intrinsic-size: 0 100vh; }
#s-about { z-index: 40; background: #FAFAFA; content-visibility: auto; contain-intrinsic-size: 0 100vh; }
#s-contact { background: #F5F5F5; z-index: 50; content-visibility: auto; contain-intrinsic-size: 0 100vh; }

/* GLASS CARD */
.g-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.08);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 1.8rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.g-card:hover {
  transform: translateY(-6px);
  border-color: rgba(176,117,32,0.4);
  box-shadow: 0 12px 40px rgba(176,117,32,0.1);
}

/* ANIMATIONS */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.sticky-sec.visible .fade-up { opacity: 1; transform: translateY(0); }
.sticky-sec.visible .fade-up:nth-child(2) { transition-delay: 0.1s; }
.sticky-sec.visible .fade-up:nth-child(3) { transition-delay: 0.2s; }
.sticky-sec.visible .fade-up:nth-child(4) { transition-delay: 0.3s; }

/* GLOW TEXT */
.glow-text { text-shadow: 0 0 30px rgba(200,138,51,0.4); }

/* GRADIENT TEXT */
.grad-text {
  background: linear-gradient(135deg, var(--gold), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* CURSOR */
#typewriter::after {
  content: '|';
  color: var(--gold);
  animation: blink 1s step-start infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* GRID GLOW */
.grid-glow {
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(200,138,51,0.06) 0%, transparent 60%),
    linear-gradient(rgba(200,138,51,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,138,51,0.06) 1px, transparent 1px);
  background-size: 100% 100%, 60px 60px, 60px 60px;
}

/* NOISE OVERLAY */
.noise::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; opacity: 0.35;
}

/* SVG HERO */
#hero-svg-wrap {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  z-index: 4;
}
#hero-svg-wrap img {
  max-width: 75vmin; max-height: 75vmin;
  filter: drop-shadow(0 0 60px rgba(200,120,30,0.15));
}
body.revealed #hero-svg-wrap img {
  animation: float 9s ease-in-out infinite;
  animation-delay: 2.5s;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* PARTICLE CANVASES */
.pcanvas {
  position: absolute; z-index: 20; pointer-events: none;
  opacity: 1;
}
#particle-layer {
  position: absolute; inset: 0;
  z-index: 20;
  pointer-events: none;
  isolation: isolate;
}

/* AMBIENT GLOW */
#hero-glow {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse 55% 45% at 50% 68%, rgba(200,90,20,0.1), transparent 70%);
  animation: pglow 5s ease-in-out infinite alternate;
  opacity: 0; transition: opacity 1s ease 2.2s;
  will-change: transform, opacity;
}
body.revealed #hero-glow { opacity: 1; }
@keyframes pglow {
  from { transform: scale(1); opacity: 0.7; }
  to   { transform: scale(1.08); opacity: 1; }
}

/* VIGNETTE */
#hero-vig {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(255,255,255,0.7) 100%);
}

/* CIRCUIT BG for hero */
.circuit-bg {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.3;
}
.circuit-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: dash 6s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: 0; } }
/* circuit path delays (mimic previous inline animation delays) */
.circuit-path.d1 { animation-delay: 1.2s; }
.circuit-path.d2 { animation-delay: 2.5s; }
.circuit-path.d3 { animation-delay: 0.6s; }

/* STAT NUMBERS */
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

/* TIGHTER H2 */
h2[style] {
  letter-spacing: -0.025em;
}

/* BUTTON */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: var(--gold);
  color: #000;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 24px rgba(200,138,51,0.35);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}
.btn-primary:hover { background: var(--amber); transform: scale(1.03); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 2rem;
  border: 1px solid rgba(0,0,0,0.2);
  background: rgba(0,0,0,0.04);
  backdrop-filter: blur(8px);
  color: #1a1208;
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  border-radius: 100px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
}
.submit-btn {
  display: inline-block;
  background: var(--gold);
  color: #000;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 1rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  width: 100%;
}

.btn-outline:hover { border-color: rgba(176,117,32,0.5); background: rgba(176,117,32,0.06); }

/* DIVIDER LINE */
.gold-line { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.25; }

/* FORM */
input, textarea {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.12);
  color: #1a1208;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}
input:focus, textarea:focus { border-color: var(--gold); }
input::placeholder, textarea::placeholder { color: rgba(26,18,8,0.35); }
label { font-size: 0.82rem; color: rgba(26,18,8,0.55); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.4rem; display: block; }

/* MOBILE */
@media (max-width: 768px) {
  .sec-inner { padding: 80px 0 40px; }
}

#s-services .container,
#s-solutions .container,
#s-about .container,
#s-contact .container {
  padding-top: 0;
  padding-bottom: 0;
}

/* SCROLL HINT */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  z-index: 10;
}
.scroll-hint span {
  font-size: 0.62rem;
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.18em;
  color: rgba(26,18,8,0.4);
  text-transform: uppercase;
}
.scroll-hint .hint-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  animation: hint-drop 1.8s ease-in-out infinite;
}
@keyframes hint-drop {
  0%,100% { transform: scaleY(0.3); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}

.scroll-hint i[data-lucide] { color: rgba(200,138,51,0.6); }

/* ── TIGHTER H2 FONT ── */
h2 { letter-spacing: -0.025em; }
.stat-num { letter-spacing: -0.04em; }

/* ── UTILITY REPLACEMENTS (no Tailwind CDN) ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.hidden { display: none !important; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-5 { gap: 1.25rem; }
.gap-8 { gap: 2rem; }
.gap-16 { gap: 4rem; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: #1a1208; }
.text-sm { font-size: 0.875rem; }
.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-14 { margin-bottom: 3.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-20 { padding-top: 6rem; padding-bottom: 6rem; }
.w-full { width: 100%; }
.max-w-4xl { max-width: 56rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.top-6 { top: 1.5rem; }
.right-6 { right: 1.5rem; }
.bottom-6 { bottom: 1.5rem; }
.left-1\/2 { left: 50%; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.cursor-pointer { cursor: pointer; }
.opacity-40 { opacity: 0.4; }
.rounded-full { border-radius: 9999px; }
.pointer-events-none { pointer-events: none; }
.space-y-8 > * + * { margin-top: 2rem; }
.transition-colors { transition: color 0.2s; }
.hover-text-white:hover { color: #1a1208; }
.container { width: 100%; }
.max-w-1200 { max-width: 1200px; margin-left: auto; margin-right: auto; }
.max-w-1100 { max-width: 1100px; margin-left: auto; margin-right: auto; }
.max-w-900 { max-width: 900px; margin-left: auto; margin-right: auto; }
.group { position: relative; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.animate-bounce { animation: bounce 1s infinite; }
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); animation-timing-function: cubic-bezier(0.8,0,1,1); }
  50%      { transform: translateX(-50%) translateY(-6px); animation-timing-function: cubic-bezier(0,0,0.2,1); }
}

@media (min-width: 768px) {
  .md-flex { display: flex; }
  .md-hidden { display: none !important; }
  .md-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .lg-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}
/* ── CONTACT FORM 7 INTEGRATION ───────────────────────────────────────────── */
/*
 * CF7 outputs our own .form-row / label / input structure.
 * Auto-<p> and auto-<br> are suppressed by PHP filters in functions.php.
 * The rules below neutralise any remaining CF7 wrapper elements.
 */

/* Kill any auto-p CF7 might still inject */
.wpcf7-form p { margin: 0; padding: 0; }

/* control-wrap span: make it display as block so it doesn't break layout */
.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Ensure the actual input/textarea inside the wrap spans full width */
.wpcf7-form-control-wrap input,
.wpcf7-form-control-wrap textarea,
.wpcf7-form-control-wrap select {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* Validation error tip under field */
.wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: #c0392b;
  font-family: 'DM Sans', sans-serif;
}

/* Invalid field highlight */
.wpcf7-not-valid input,
.wpcf7-not-valid textarea {
  border-color: #c0392b !important;
}

/* Response output bar */
.wpcf7-response-output {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-family: 'DM Sans', sans-serif;
  border: 1px solid transparent;
}

.wpcf7-mail-sent-ok {
  background: rgba(39,174,96,0.08);
  border-color: rgba(39,174,96,0.3);
  color: #1e7e34;
}

.wpcf7-mail-sent-ng,
.wpcf7-spam-blocked,
.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
  background: rgba(192,57,43,0.06);
  border-color: rgba(192,57,43,0.25);
  color: #c0392b;
}

/* Spinner — shown while submitting */
.wpcf7-spinner {
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
  opacity: 0.7;
}

/* submit-btn loading state */
.wpcf7-submit:disabled,
.submit-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}


/* ── LOGO IMAGE ───────────────────────────────────────────────────────────── */
.ampera-logo {
    height: 36px;
    width: auto;
    max-width: 200px;
    display: block;
    object-fit: contain;
}

/* WP custom logo wrapper */
.custom-logo-link {
    display: flex;
    align-items: center;
}

.custom-logo-link .custom-logo,
.custom-logo-link img {
    height: 36px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* ── HERO IMAGE ───────────────────────────────────────────────────────────── */
#main-svg {
    /* Ensure uploaded images scale correctly like the SVG did */
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
