/* ART CNC Machining &mdash; base.css | MESH/5.1 */

/* -- Scrollbar -- */
::-webkit-scrollbar { width: var(--scrollbar-w,4px); }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }
* { scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) transparent; }

/* -- Reset -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: var(--font-size); scroll-behavior: smooth; scrollbar-gutter: stable; overflow-y: scroll; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: var(--line-height); min-height: 100vh; }
img, video { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: opacity var(--t); }
a:hover { opacity: .8; }
ul { list-style: none; }

/* -- Layout -- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }

/* -- Navigation -- */
#mesh-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(10,13,20,.45);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border-bottom: none;
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
#mesh-nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(220,38,38,.4) 20%, rgba(220,38,38,.75) 50%, rgba(220,38,38,.4) 80%, transparent 100%);
  pointer-events: none;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav-logo {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--gold);
  flex-shrink: 0;
  letter-spacing: -.01em;
}
.nav-logo-sub {
  font-weight: 400;
  font-size: .72rem;
  color: var(--text-muted);
  display: block;
  letter-spacing: .04em;
  line-height: 1;
  margin-top: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .15rem;
  margin-left: auto;
}
.nav-links > li { position: relative; }
.nav-links a {
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 600;
  padding: .45rem .8rem;
  border-radius: var(--radius-sm);
  transition: color var(--t), background var(--t);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.06); opacity: 1; }

/* Dropdown */
.has-dropdown > a::after { content: ' \25BE'; font-size: .65rem; }
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .4rem 0;
  box-shadow: var(--shadow);
  z-index: 10;
}
.has-dropdown.open .dropdown { display: block; }
.dropdown a { display: block; padding: .55rem 1rem; color: var(--text-muted); font-size: .85rem; border-radius: 0; }
.dropdown a:hover { color: var(--text); background: rgba(255,255,255,.05); }

/* CTA nav button */
.nav-cta { background: var(--gold) !important; color: #fff !important; border-radius: var(--radius-sm); padding: .45rem 1rem !important; font-weight: 700 !important; }
.nav-cta:hover { opacity: .88 !important; color: #fff !important; }

/* Hamburger */
#nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 1.5rem;
  padding: .2rem .4rem;
  margin-left: auto;
  line-height: 1;
}

/* -- Hero -- */
.hero {
  height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(234,179,8,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: .9rem;
}
.hero-sub {
  font-size: clamp(.9rem, 2vw, 1.1rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 1.4rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  background: var(--gold-dim);
  padding: .3rem .9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

/* Page hero (inner pages -- full height) */
.hero, .page-hero {
  height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.02em; }
.page-hero .breadcrumb { font-size: .8rem; color: var(--text-muted); margin-bottom: 1rem; }
.page-hero .breadcrumb a { color: var(--text-muted); }
.page-hero .breadcrumb a:hover { color: var(--gold); opacity: 1; }

/* Red gradient line at bottom of every hero (matches nav line) */
.hero::after,
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(220,38,38,.4) 20%, rgba(220,38,38,.75) 50%, rgba(220,38,38,.4) 80%, transparent 100%);
  pointer-events: none;
  z-index: 5;
}

/* Global scroll arrow (used by all heroes) — v2 pretty gold */
.scroll-arrow {
  position: absolute !important;
  bottom: 3rem !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  cursor: pointer;
  z-index: 10;
  text-decoration: none;
  pointer-events: auto;
  animation: arrowBounce 2.2s ease-in-out infinite;
  transition: opacity .25s ease, filter .25s ease;
  opacity: .85;
  filter: drop-shadow(0 0 6px rgba(234,179,8,.35));
}
.scroll-arrow:hover {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(234,179,8,.7));
}
.scroll-arrow span {
  display: block;
  width: 22px;
  height: 22px;
  border-right: 2.5px solid var(--gold, #eab308);
  border-bottom: 2.5px solid var(--gold, #eab308);
  transform: rotate(45deg);
  border-radius: 2px;
}
.scroll-arrow span:nth-child(2) { opacity: .55; margin-top: -12px; }
.scroll-arrow span:nth-child(3) { opacity: .28; margin-top: -12px; }
@keyframes arrowBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(10px); }
}

/* -- Buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1.6rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--t);
  text-decoration: none;
  font-family: var(--font);
}
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { opacity: .88; color: #fff; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--border-hover); background: rgba(255,255,255,.04); color: var(--text); opacity: 1; }

/* -- Cards -- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; transition: border-color var(--t); }
.card:hover { border-color: var(--border-hover); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.card-icon { font-size: 2rem; margin-bottom: .75rem; }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.card p { color: var(--text-muted); font-size: .88rem; }
.card .card-link { display: inline-block; margin-top: 1rem; font-size: .83rem; font-weight: 700; color: var(--gold); }

/* Service card with border accent */
.service-card { border-top: 2px solid var(--gold-border); }
.service-card:hover { border-top-color: var(--gold); }

/* -- Stats row -- */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; text-align: center; }
.stat-item { padding: 1.5rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.stat-num { font-size: 2.4rem; font-weight: 900; color: var(--gold); letter-spacing: -.03em; line-height: 1; }
.stat-label { font-size: .78rem; color: var(--text-muted); margin-top: .35rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

/* -- Section titles -- */
.section-label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .75rem; }
.section-title { font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 1rem; }
.section-sub { font-size: 1.05rem; color: var(--text-muted); max-width: 600px; }

/* -- Two-col content -- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.two-col-text h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem; }
.two-col-text p { color: var(--text-muted); margin-bottom: 1rem; font-size: .97rem; }

/* -- Materials table -- */
.materials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.material-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem 1rem; font-size: .87rem; }
.material-item strong { color: var(--gold); display: block; margin-bottom: .25rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }

/* -- CTA band -- */
.cta-band { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 4rem 0; text-align: center; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .75rem; }
.cta-band p { color: var(--text-muted); margin-bottom: 2rem; }
.cta-phone { font-size: 1.8rem; font-weight: 900; color: var(--gold); letter-spacing: -.02em; }

/* -- Contact form -- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: .83rem; font-weight: 600; color: var(--text-muted); }
.form-group input, .form-group textarea, .form-group select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: .9rem;
  padding: .6rem .9rem;
  transition: border-color var(--t);
  width: 100%;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold-border);
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* -- Gallery placeholder -- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.gallery-item {
  aspect-ratio: 4/3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .85rem;
}

/* -- Footer -- */
.site-footer { border-top: 1px solid var(--border); padding: 4rem 0 2rem; margin-top: 0; font-size: .85rem; color: var(--text-muted); }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-logo { font-weight: 900; color: var(--gold); font-size: 1rem; margin-bottom: .35rem; }
.footer-tagline { font-size: .82rem; color: var(--text-muted); }
.footer-heading { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: .75rem; }
.footer-links { display: flex; flex-direction: column; gap: .35rem; }
.footer-links a { color: var(--text-muted); font-size: .85rem; }
.footer-links a:hover { color: var(--gold); opacity: 1; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .78rem;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--gold); opacity: 1; }

/* -- Utilities -- */
.gold { color: var(--gold); }
.muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.inline-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag { background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: .25rem .75rem; font-size: .78rem; color: var(--text-muted); }

/* -- Responsive -- */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  #nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: .5rem 0;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; }
  .nav-links a { display: block; padding: .75rem 1.5rem; border-radius: 0; }
  .dropdown { position: static; box-shadow: none; border: none; border-radius: 0; padding: 0 0 .5rem 1.5rem; background: transparent; display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown a { font-size: .82rem; padding: .45rem 1rem; }
  .section { padding: 3rem 0; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 2rem; }
}


/* --- Hero CENTER + smaller fonts (FORCED) --- */
.hero, .page-hero { text-align: center !important; position: relative; }
.hero .container, .page-hero .container { text-align: center !important; }
.hero h1, .hero h2, .hero p,
.page-hero h1, .page-hero h2, .page-hero p {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}
.hero p, .page-hero p { max-width: 780px !important; }
.hero div, .page-hero div { text-align: center !important; }
.hero > .container > div,
.page-hero > .container > div { justify-content: center !important; }

/* Smaller hero subtitle (span in H1) */
.hero h1 span, .page-hero h1 span {
  font-size: .34em !important;
  font-weight: 600 !important;
  letter-spacing: .01em;
}
/* Smaller hero description */
.hero > .container > p,
.page-hero > .container > p {
  font-size: .88rem !important;
  opacity: .85 !important;
  line-height: 1.55 !important;
}
/* Smaller H1 too — matches lighter feel */
.hero h1, .page-hero h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem) !important;
  line-height: 1.15 !important;
}
/* Bottom badges row smaller */
.hero > .container > div[style*="opacity"],
.page-hero > .container > div[style*="opacity"] {
  font-size: .78rem !important;
  gap: 1.2rem !important;
}


/* ============================================================
   BEAUTIFUL MODERN SECTIONS - global styling under hero
   Glass cards, gold gradient headings, hover glow, accordion
   ============================================================ */

/* Section H2 - gold gradient text + underline accent */
section.container h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #fef3c7 0%, #eab308 50%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  padding-bottom: .8rem;
  margin-bottom: 1.4rem;
  display: inline-block;
}
section.container h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #eab308 0%, transparent 100%);
}

/* Section paragraph */
section.container > p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(255,255,255,.82);
  max-width: 850px;
  margin-bottom: 1.1rem;
}
section.container > p strong { color: #fef3c7; font-weight: 700; }

/* UL - checkmark bullets */
section.container > ul { list-style: none; padding: 0; margin: 1rem 0; }
section.container > ul > li {
  position: relative;
  padding: .7rem 1rem .7rem 2.3rem;
  border-radius: 8px;
  transition: background .2s ease, transform .2s ease;
  border-left: 2px solid transparent;
}
section.container > ul > li::before {
  content: "\2713";
  position: absolute;
  left: .7rem;
  top: .7rem;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eab308, #d97706);
  color: #0a0d14;
  border-radius: 50%;
  font-weight: 900;
  font-size: .8rem;
  box-shadow: 0 0 12px rgba(234,179,8,.4);
}
section.container > ul > li:hover {
  background: rgba(234,179,8,.05);
  border-left-color: #eab308;
  transform: translateX(4px);
}
section.container > ul > li strong { color: #fef3c7; }

/* OL - numbered steps with gold badges */
section.container > ol { list-style: none; padding: 0; margin: 1rem 0; counter-reset: step; }
section.container > ol > li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1rem 1rem 3.5rem;
  margin-bottom: .6rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,.02) 0%, rgba(234,179,8,.02) 100%);
  border: 1px solid rgba(234,179,8,.12);
  transition: all .25s ease;
}
section.container > ol > li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: .95rem;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eab308, #d97706);
  color: #0a0d14;
  border-radius: 50%;
  font-weight: 900;
  font-size: .95rem;
  box-shadow: 0 4px 12px rgba(234,179,8,.35);
}
section.container > ol > li:hover {
  border-color: rgba(234,179,8,.4);
  background: linear-gradient(135deg, rgba(234,179,8,.04) 0%, rgba(234,179,8,.08) 100%);
  transform: translateY(-2px);
}
section.container > ol > li strong { color: #fef3c7; display: block; margin-bottom: .3rem; }

/* Service grid cards */
.svc-grid > div {
  padding: 1.5rem 1.4rem;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255,255,255,.04) 0%, rgba(234,179,8,.02) 100%);
  border: 1px solid rgba(234,179,8,.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.svc-grid > div::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, #eab308, #d97706, transparent);
  opacity: .5;
  transition: opacity .3s ease;
}
.svc-grid > div:hover {
  transform: translateY(-6px);
  border-color: rgba(234,179,8,.5);
  box-shadow: 0 20px 40px -12px rgba(234,179,8,.25), 0 0 0 1px rgba(234,179,8,.2);
  background: linear-gradient(160deg, rgba(234,179,8,.06) 0%, rgba(234,179,8,.03) 100%);
}
.svc-grid > div:hover::before { opacity: 1; }
.svc-grid > div h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: .6rem;
  color: #fef3c7;
  letter-spacing: -.01em;
}
.svc-grid > div h3 a { color: #fef3c7; text-decoration: none; }
.svc-grid > div h3 a:hover { color: #eab308; }
.svc-grid > div p {
  font-size: .92rem;
  line-height: 1.65;
  color: rgba(255,255,255,.75);
  margin: 0;
}

/* FAQ details accordion */
section.container details {
  border: 1px solid rgba(234,179,8,.15);
  background: linear-gradient(160deg, rgba(255,255,255,.03) 0%, rgba(234,179,8,.02) 100%);
  border-radius: 12px;
  overflow: hidden;
  transition: all .25s ease;
}
section.container details:hover {
  border-color: rgba(234,179,8,.4);
  box-shadow: 0 8px 24px -8px rgba(234,179,8,.2);
}
section.container details[open] {
  border-color: rgba(234,179,8,.5);
  background: linear-gradient(160deg, rgba(234,179,8,.05) 0%, rgba(234,179,8,.02) 100%);
  box-shadow: 0 12px 32px -12px rgba(234,179,8,.3);
}
section.container details summary {
  padding: 1.2rem 3rem 1.2rem 1.4rem !important;
  list-style: none;
  cursor: pointer;
  position: relative;
  font-size: 1.02rem !important;
  color: #fef3c7 !important;
  transition: background .2s ease;
}
section.container details summary::-webkit-details-marker { display: none; }
section.container details summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eab308, #d97706);
  color: #0a0d14;
  border-radius: 50%;
  font-weight: 900;
  font-size: 1.3rem;
  transition: transform .3s ease;
  box-shadow: 0 0 12px rgba(234,179,8,.4);
}
section.container details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
section.container details p {
  padding: 0 1.4rem 1.4rem !important;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  font-size: .95rem;
  margin: 0 !important;
}

/* Emergency callout red */
section.container[style*="rgba(220,38,38"] {
  border: 1px solid rgba(220,38,38,.4) !important;
  background: linear-gradient(135deg, rgba(220,38,38,.08) 0%, rgba(234,179,8,.04) 100%) !important;
  box-shadow: 0 0 60px rgba(220,38,38,.15), inset 0 1px 0 rgba(255,255,255,.05);
  position: relative;
  overflow: hidden;
}
section.container[style*="rgba(220,38,38"]::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, #dc2626, #eab308, transparent);
  animation: emergencyPulse 3s ease-in-out infinite;
}
@keyframes emergencyPulse {
  0%,100% { opacity: .6; }
  50%      { opacity: 1; box-shadow: 0 0 20px rgba(234,179,8,.6); }
}

/* Comparison tables */
section.container table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  background: rgba(255,255,255,.02);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(234,179,8,.15);
  box-shadow: 0 8px 32px -8px rgba(0,0,0,.5);
}
section.container table thead th {
  background: linear-gradient(135deg, rgba(234,179,8,.15) 0%, rgba(234,179,8,.08) 100%);
  color: #fef3c7;
  font-weight: 800;
  padding: 1rem;
  text-align: left;
  border-bottom: 2px solid rgba(234,179,8,.3);
  font-size: .92rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
section.container table tbody td {
  padding: .85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  color: rgba(255,255,255,.85);
  font-size: .95rem;
}
section.container table tbody tr:hover td {
  background: rgba(234,179,8,.04);
}
section.container table tbody tr:last-child td { border-bottom: none; }
section.container table tbody td:first-child {
  font-weight: 700;
  color: #fef3c7;
}

/* Links */
section.container ul li a {
  color: #eab308;
  text-decoration: none;
  transition: all .2s ease;
  font-weight: 600;
}
section.container ul li a:hover {
  color: #fde047;
  text-shadow: 0 0 8px rgba(234,179,8,.4);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, rgba(10,13,20,.95) 0%, rgba(20,15,10,.98) 50%, rgba(30,20,10,.95) 100%);
  border-top: 1px solid rgba(234,179,8,.3);
  border-bottom: 1px solid rgba(234,179,8,.3);
  padding: 3rem 0 !important;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200%;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(234,179,8,.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band > .container { position: relative; z-index: 1; }
.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fef3c7, #eab308);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: .8rem;
}
.cta-phone {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin: 1rem 0;
  letter-spacing: -.02em;
}
.cta-phone a {
  color: #eab308 !important;
  text-decoration: none;
  text-shadow: 0 0 20px rgba(234,179,8,.4);
  transition: all .3s ease;
}
.cta-phone a:hover {
  color: #fde047 !important;
  text-shadow: 0 0 30px rgba(234,179,8,.7);
}

/* ============================================================
   IMPECCABLE — Cinematic Reveals (Direction A)
   Scroll-driven fade+lift, ambient gold background, ripple hover
   Respects prefers-reduced-motion via .imp-reduced on <html>
   ============================================================ */

/* Ambient gold blob fixed behind everything (very subtle) */
body::before {
  content: "";
  position: fixed;
  inset: -20% -10%;
  background:
    radial-gradient(ellipse 45% 30% at 20% 30%, rgba(234,179,8,.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 25% at 80% 70%, rgba(217,119,6,.05) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  animation: impAmbientDrift 32s ease-in-out infinite alternate;
}
@keyframes impAmbientDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-3%, 2%, 0) scale(1.05); }
  100% { transform: translate3d(3%, -2%, 0) scale(1); }
}
main, footer, nav, section, .cta-band { position: relative; z-index: 1; }

/* Reveal — hidden state (before observer fires) */
.imp-reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition:
    opacity 900ms cubic-bezier(.19, 1, .22, 1) var(--imp-delay, 0ms),
    transform 900ms cubic-bezier(.19, 1, .22, 1) var(--imp-delay, 0ms);
  will-change: opacity, transform;
}
.imp-reveal.imp-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

/* Reduce-motion safety — no animation for users who opt out */
.imp-reduced .imp-reveal,
.imp-reduced body::before {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/* H2 reveal — larger lift + shorter delay chain */
section.container h2.imp-reveal {
  transform: translate3d(0, 20px, 0);
}

/* Svc-grid cards — enhance existing hover with ripple + subtle scale */
.svc-grid > div {
  position: relative;
}
.svc-grid > div::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234,179,8,.15) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .6s cubic-bezier(.19,1,.22,1), opacity .5s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.svc-grid > div:hover::after {
  transform: translate(-50%, -50%) scale(4);
  opacity: 1;
}
.svc-grid > div > * { position: relative; z-index: 1; }

/* Details FAQ — smoother reveal with staggered entrance */
section.container details.imp-reveal { transform: translate3d(0, 24px, 0); }

/* List items — smaller lift */
section.container > ul > li.imp-reveal,
section.container > ol > li.imp-reveal {
  transform: translate3d(-16px, 0, 0);
}

/* CTA band — dramatic scale-in */
.cta-band.imp-reveal {
  transform: translate3d(0, 40px, 0) scale(.97);
  transition:
    opacity 1000ms cubic-bezier(.19, 1, .22, 1),
    transform 1000ms cubic-bezier(.19, 1, .22, 1);
}
.cta-band.imp-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

/* Table — subtle slide-up */
section.container table.imp-reveal {
  transform: translate3d(0, 24px, 0);
}

/* Heading word-by-word reveal (opt-in via class="split-words") */
.split-words > span {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 100%, 0);
  animation: impWordRise 800ms cubic-bezier(.19, 1, .22, 1) forwards;
  animation-delay: calc(var(--word-i, 0) * 80ms);
}
@keyframes impWordRise {
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Hero background gets subtle parallax scale (paired with JS parallax) */
.page-hero, .hero {
  background-size: cover !important;
  background-position: center !important;
}

/* Section separator — hairline gold thread between sections (very subtle) */
main > section.container + section.container::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(234,179,8,.18), transparent);
  pointer-events: none;
}

/* Buttons — gold pulse ring on hover */
.btn-primary,
.btn[class*="primary"] {
  position: relative;
  overflow: hidden;
}
.btn-primary::before,
.btn[class*="primary"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.25) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.btn-primary:hover::before,
.btn[class*="primary"]:hover::before {
  opacity: 1;
}

/* --- Fixed hero backgrounds — desktop (przyklejone do viewport) ---
   Mobile: fallback do scroll (background-attachment:fixed jankuje na iOS) */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .hero, .page-hero, .emg-hero {
    background-attachment: fixed !important;
  }
}
/* Emergency hero — zoom animation would fight fixed on desktop; keep zoom only mobile */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .emg-hero { animation: none !important; background-size: cover !important; }
}
/* Homepage .hero — video autoplay stays as background (poster as fallback) */
.hero#home {
  background-image:
    linear-gradient(rgba(10,13,20,.55), rgba(10,13,20,.80)),
    url('/videos/art-cnc-hero-poster.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
}
.hero#home .hero-video {
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero#home .hero-overlay {
  display: block !important;
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10,13,20,.55), rgba(10,13,20,.80));
  z-index: 1;
  pointer-events: none;
}
.hero#home > *:not(.hero-video):not(.hero-overlay) {
  position: relative;
  z-index: 2;
}

/* --- Homepage .hero — dopasowanie tekstu do stylu .page-hero --- */
.hero#home .hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem) !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
  letter-spacing: -.02em !important;
  margin-bottom: 1rem !important;
}
.hero#home .hero-title .gold { color: var(--gold); }
.hero#home .hero-title .hero-subline {
  font-size: 1em !important;
  font-weight: 900 !important;
  letter-spacing: -.02em !important;
  color: var(--text-muted) !important;
  display: inline;
  margin-left: .35em;
}
.hero#home .hero-title span[style] {
  font-size: 1em !important;
  font-weight: 900 !important;
  color: var(--text-muted) !important;
  display: inline;
  margin-left: .35em;
}
.hero#home .hero-sub {
  font-size: .88rem !important;
  opacity: .85 !important;
  line-height: 1.55 !important;
  max-width: 780px !important;
  margin: 0 auto 1.5rem !important;
}
.hero#home .hero-badge {
  font-size: .7rem !important;
  padding: .28rem .8rem !important;
  letter-spacing: .08em !important;
  margin-bottom: 1.4rem !important;
}
.hero#home .hero-actions { justify-content: center !important; gap: 1rem !important; }
.hero#home .hero-actions .btn { font-size: .92rem !important; padding: .7rem 1.4rem !important; }
.hero#home > *:not(.hero-video):not(.hero-overlay) > p:last-of-type {
  font-size: .72rem !important;
  opacity: .8 !important;
  letter-spacing: .06em !important;
}

/* --- Mobile: hide hero buttons row (per Artur 2026-08-29) --- */
@media (max-width: 768px) {
  /* Hide button containers in every hero (homepage .hero-actions + inline flex rows) */
  /* Hide button containers na mobile — safe non-:has() approach */
  .hero .hero-actions,
  .page-hero .hero-actions {
    display: none !important;
  }
  /* Bezpośrednio hide buttons (fallback + main) — parent div collapse'uje przez :empty pattern */
  .hero .btn, .page-hero .btn, .emg-hero .btn { display: none !important; }
  /* Empty flex containers po hidden buttons — kill margin/padding */
  .hero > .container > div[style*="display:flex"],
  .page-hero > .container > div[style*="display:flex"],
  .emg-hero div[style*="display:flex"] {
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    min-height: 0;
  }
}

/* --- Mobile: KAŻDY hero pełny viewport minus sticky nav = jeden ekran total --- */
@media (max-width: 768px) {
  .hero, .page-hero, .emg-hero {
    height: calc(100vh - var(--nav-h)) !important;    /* fallback */
    height: calc(100svh - var(--nav-h)) !important;   /* modern iOS-safe */
    min-height: auto !important;
    max-height: calc(100svh - var(--nav-h)) !important;
    padding-top: 1rem !important;
    padding-bottom: 1.5rem !important;
  }
  /* page-hero content — smaller typography żeby mieściło się */
  .page-hero h1 { font-size: clamp(1.4rem, 5.5vw, 2rem) !important; line-height: 1.15 !important; margin-bottom: .6rem !important; }
  .page-hero h1 span { font-size: .5em !important; margin-top: .2rem !important; }
  .page-hero > .container > p { font-size: .82rem !important; line-height: 1.5 !important; margin: .6rem auto .8rem !important; max-width: 100% !important; }
  .page-hero > .container > div[style*="opacity"] { font-size: .68rem !important; gap: .8rem !important; margin-top: .8rem !important; }
  .page-hero .breadcrumb { font-size: .7rem !important; margin-bottom: .6rem !important; }
  /* emergency callouts inside emg-hero */
  .emg-hero h1 { font-size: clamp(1.4rem, 5.5vw, 2rem) !important; line-height: 1.15 !important; }
  .emg-hero .emg-phone { font-size: clamp(1.3rem, 5vw, 2rem) !important; }
  /* Homepage H1 na mobile — zmieści się */
  .hero#home .hero-title { font-size: clamp(1.4rem, 7vw, 2rem) !important; line-height: 1.15 !important; }
  .hero#home .hero-title .gold { display: inline; }
  .hero#home .hero-title .hero-subline { font-size: 1em !important; }
  .hero#home .hero-sub { font-size: .78rem !important; margin-bottom: 1rem !important; }
  .hero#home .hero-badge { font-size: .62rem !important; padding: .22rem .7rem !important; margin-bottom: 1rem !important; }
  /* Badges/labels strip po hero-actions */
  .hero#home > *:not(.hero-video):not(.hero-overlay) > p:last-of-type { font-size: .62rem !important; line-height: 1.5 !important; margin-top: .8rem !important; }
}

/* --- Fix: section.container horizontal padding + nav sticky iOS reliability --- */
/* Inline style="padding:3rem 0" na sections chowa horizontal padding — force */
section.container {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}
/* iOS Safari: overflow-x:hidden na body LAMIE position:sticky na children.
   Use `clip` instead (modern browsers), or move to <html> as fallback.
   References: https://stackoverflow.com/q/54534898  */
html { overflow-x: hidden; }
body { overflow-x: clip; }

/* iOS Safari: force nav sticky reliability across all pages */
#mesh-nav {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 900 !important;
}
