/* 
   Prime Mec - Design System & Stylesheet
   Modern Industrial Aesthetics - Dark Theme & Glassmorphism
*/

:root {
  /* Color Palette */
  --navy: #142844;
  --navy2: #1d375c;
  --deep: #0e1d33;
  --steel: #3f6ea5;
  --steel-l: #7ea3cf;
  
  /* Primary Amber Accent */
  --amber: #e58b29;
  --amber-d: #c4731a;
  
  /* Dark Mode Foundations */
  --bg-dark: #0b1320;
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-card-hover: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(126, 163, 207, 0.15);
  --border-glass-hover: rgba(126, 163, 207, 0.3);
  
  /* Typography & Ink */
  --ink: #f0f4f9;
  --grey: #8ea4c2;
  --text-muted: rgba(240, 244, 249, 0.6);
  --paper: #fff;
  
  /* System */
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-heading: 'Saira Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.dsp {
  font-family: var(--font-heading);
  text-transform: uppercase;
}

.amber {
  color: var(--amber);
}

/* Modern Rounded Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 12px; /* Smoother corner */
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-amber {
  background: linear-gradient(135deg, var(--amber), var(--amber-d));
  color: #142844;
  box-shadow: 0 4px 15px rgba(229, 139, 41, 0.25);
}

.btn-amber:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(229, 139, 41, 0.4);
  color: #0b1320;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Glassmorphism Navigation */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 19, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition);
}

.navin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  height: 46px;
  width: auto;
  transition: var(--transition);
}

.brand:hover img {
  transform: scale(1.05);
}

.brand span {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--paper);
  font-size: 21px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--grey);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--paper);
}

.nav-links .btn {
  padding: 10px 22px;
  font-size: 14px;
  border-radius: 10px;
}

@media(max-width: 820px) {
  .nav-links a:not(.btn) {
    display: none;
  }
}

/* Hero Section with Glowing Particles */
.hero {
  position: relative;
  background: 
    radial-gradient(1000px 600px at 80% 10%, rgba(63, 110, 165, 0.18), transparent 70%),
    linear-gradient(160deg, #0b1320 0%, #142844 50%, #0e1d33 100%);
  color: var(--paper);
  overflow: hidden;
}

/* Ambient Halos */
.hero-halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
}

.hero-halo-1 {
  background: var(--amber);
  width: 300px;
  height: 300px;
  top: 10%;
  left: 5%;
  animation: floatHalo1 10s ease-in-out infinite alternate;
}

.hero-halo-2 {
  background: var(--steel-l);
  width: 450px;
  height: 450px;
  bottom: 10%;
  right: 15%;
  animation: floatHalo2 12s ease-in-out infinite alternate;
}

@keyframes floatHalo1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.1); }
}

@keyframes floatHalo2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, -20px) scale(1.05); }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: 
    linear-gradient(rgba(126, 163, 207, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 163, 207, 0.15) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  z-index: 2;
}

.heroin {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding: 100px 0 120px;
  z-index: 3;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 13.5px;
  color: var(--steel-l);
  font-weight: 600;
  margin-bottom: 24px;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--amber);
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  font-size: clamp(42px, 5vw, 68px);
  letter-spacing: 0.01em;
}

.hero h1 em {
  background: linear-gradient(135deg, var(--amber), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}

.hero p.lead {
  font-size: 19px;
  color: var(--grey);
  margin: 26px 0 36px;
  max-width: 550px;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.heroart {
  position: relative;
}

.heroart .card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass-hover);
  border-radius: 24px; /* Ultra Rounded */
  padding: 20px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.6);
  animation: float 6s ease-in-out infinite;
}

.heroart .card img {
  border-radius: 16px;
  width: 100%;
}

.heroart .tag {
  position: absolute;
  left: 24px;
  bottom: 30px;
  background: linear-gradient(135deg, var(--amber), var(--amber-d));
  color: #142844;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@media(max-width: 820px) {
  .heroin {
    grid-template-columns: 1fr;
    padding: 60px 0 80px;
  }
  .heroart {
    order: -1;
  }
  .heroart .tag {
    left: 10px;
  }
}

/* Trust Strip (Opaque Slate) */
.trust {
  background: #090e18;
  border-top: 1px solid rgba(126, 163, 207, 0.12);
}

.trustin {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.trustin div {
  padding: 30px 20px;
  text-align: center;
  border-right: 1px solid rgba(126, 163, 207, 0.08);
}

.trustin div:last-child {
  border-right: none;
}

.trustin .n {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 34px;
  color: var(--paper);
  line-height: 1;
}

.trustin .n small {
  color: var(--amber);
}

.trustin .l {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--grey);
  text-transform: uppercase;
  margin-top: 8px;
  font-family: var(--font-heading);
}

@media(max-width: 820px) {
  .trustin {
    grid-template-columns: repeat(2, 1fr);
  }
  .trustin div:nth-child(2) {
    border-right: none;
  }
}

/* Block & Section Typography */
section.block {
  padding: 100px 0;
}

.shead {
  margin-bottom: 60px;
  max-width: 680px;
}

.shead .kicker {
  font-family: var(--font-heading);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel-l);
  font-weight: 600;
  font-size: 14px;
}

.shead h2 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
  margin: 12px 0 16px;
}

.shead p {
  color: var(--grey);
  font-size: 17.5px;
}

/* Capabilities (Modern Opaque Glass Grid) */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cap {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px; /* Modern Rounded Corners */
  padding: 36px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

.cap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 4px;
  width: 0;
  background: var(--amber);
  transition: var(--transition);
}

.cap:hover {
  border-color: rgba(229, 139, 41, 0.4);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  transform: translateY(-5px);
}

.cap:hover::before {
  width: 100%;
}

.cap .ico {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(126, 163, 207, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.cap:hover .ico {
  background: rgba(229, 139, 41, 0.15);
}

.cap .ico svg {
  width: 26px;
  height: 26px;
  stroke: var(--steel-l);
  fill: none;
  stroke-width: 1.7;
  transition: var(--transition);
}

.cap:hover .ico svg {
  stroke: var(--amber);
}

.cap h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  color: var(--paper);
  font-size: 20px;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.cap p {
  font-size: 15px;
  color: var(--grey);
  line-height: 1.6;
}

/* Why PrimeMec Page — Extended Sections */
.why-hero {
  background: linear-gradient(180deg, #09101a 0%, #102138 100%);
  color: var(--paper);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.why-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: 
    linear-gradient(rgba(229, 139, 41, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 139, 41, 0.4) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 80%);
}

.why-hero .shead {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.why-hero .shead h2 {
  color: var(--paper);
  font-size: clamp(36px, 5vw, 54px);
}

.why-hero .shead .kicker {
  color: var(--amber);
  justify-content: center;
}

.why-hero .shead p {
  color: var(--grey);
  font-size: 20px;
}

/* Feature Rows (Alternating Layout) */
.why-features {
  background: #f4f6f8;
  padding: 80px 0;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feat-content {
  position: relative;
}

.feat-num {
  font-family: var(--font-heading);
  font-size: 140px;
  font-weight: 800;
  line-height: 0.8;
  color: rgba(20, 40, 68, 0.04);
  position: absolute;
  top: -40px;
  left: -20px;
  z-index: 0;
  user-select: none;
}

.feat-content h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--navy);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.feat-content h3 span {
  color: var(--amber);
}

.feat-content p {
  color: #555;
  font-size: 18px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.feat-list {
  list-style: none;
  padding: 0;
  position: relative;
  z-index: 1;
}

.feat-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--navy);
  font-weight: 500;
}

.feat-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--amber);
  font-weight: bold;
}

.feat-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  aspect-ratio: 4/3;
  background: var(--navy);
}

.feat-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.feature-row:hover .feat-image img {
  transform: scale(1.05);
}

.feat-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20,40,68,0.4) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

@media(max-width: 900px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 80px;
  }
  .feature-row.reverse {
    direction: ltr;
  }
  .feat-num {
    font-size: 100px;
    top: -20px;
  }
}

@media(max-width: 820px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Market Segment Section */
.market {
  background: #f4f6f8;
  color: var(--navy);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.market .shead h2 {
  color: var(--navy);
}
.market .shead p {
  color: rgba(20, 40, 68, 0.85);
}
.market .shead .kicker {
  color: var(--amber);
}

.mcards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.mcard {
  background: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 36px;
  border-left: 5px solid var(--amber);
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.mcard.b {
  border-left-color: var(--navy);
}

.mcard:hover {
  background: #fdfdfd;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}

.mcard.b:hover {
  border-left-color: var(--navy);
}

.mcard h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--navy);
  font-size: 23px;
  font-weight: 700;
  margin-bottom: 12px;
}

.mcard p {
  color: #555555;
  font-size: 16px;
}

.mcard .pill {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(20, 40, 68, 0.08);
  color: var(--navy);
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
}

@media(max-width: 820px) {
  .mcards {
    grid-template-columns: 1fr;
  }
}

/* Market Page — Extended Sections */
.market-hero {
  background: linear-gradient(160deg, #0b1320 0%, #142844 50%, #0e1d33 100%);
  color: var(--paper);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.market-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: 
    linear-gradient(rgba(126, 163, 207, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 163, 207, 0.15) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}

.market-hero .shead {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.market-hero .shead h2 {
  color: var(--paper);
}

.market-hero .shead .kicker {
  color: var(--steel-l);
}

.market-hero .shead p {
  color: var(--grey);
}

/* Market Stats Strip */
.market-stats {
  background: #090e18;
  border-top: 1px solid rgba(126, 163, 207, 0.12);
  border-bottom: 1px solid rgba(126, 163, 207, 0.12);
}

.market-stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.market-stats .stat {
  padding: 36px 20px;
  text-align: center;
  border-right: 1px solid rgba(126, 163, 207, 0.08);
}

.market-stats .stat:last-child {
  border-right: none;
}

.market-stats .stat-n {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 38px;
  color: var(--amber);
  line-height: 1;
}

.market-stats .stat-l {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--grey);
  text-transform: uppercase;
  margin-top: 10px;
  font-family: var(--font-heading);
}

@media(max-width: 820px) {
  .market-stats .wrap {
    grid-template-columns: repeat(2, 1fr);
  }
  .market-stats .stat:nth-child(2) {
    border-right: none;
  }
}

/* Market Cards — Extended (4 cards grid) */
.mcards-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media(max-width: 820px) {
  .mcards-4 {
    grid-template-columns: 1fr;
  }
}

/* Market Card Detail List */
.mcard ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.mcard ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: #555;
  font-size: 15px;
  line-height: 1.5;
}

.mcard ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.mcard.b ul li::before {
  background: var(--navy);
}

.mcard.c {
  border-left-color: var(--steel);
}

.mcard.c ul li::before {
  background: var(--steel);
}

.mcard.d {
  border-left-color: #2ecc71;
}

.mcard.d ul li::before {
  background: #2ecc71;
}

/* Market CTA Section */
.market-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.market-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(229, 139, 41, 0.08) 0%, transparent 60%);
}

.market-cta .wrap {
  position: relative;
  z-index: 2;
}

.market-cta h2 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--paper);
  margin-bottom: 16px;
}

.market-cta p {
  color: var(--grey);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Projects Section (High End Portfolio Grid) */
.projs {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
}

.heroart {
  position: relative;
  border-radius: 20px;
  perspective: 1200px;
}
.heroart .card {
  transform-origin: bottom center;
  will-change: transform, opacity;
}

.proj {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.proj img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.1s linear;
  will-change: transform;
}

.proj.draw img {
  object-fit: contain;
  padding: 24px;
  background: rgba(255, 255, 255, 0.01);
}

.proj figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(11, 19, 32, 0.95));
  color: var(--paper);
  padding: 30px 24px 20px;
  transition: var(--transition);
}

.proj figcaption .t {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.05em;
}

.proj figcaption .d {
  font-size: 14px;
  color: var(--grey);
  margin-top: 4px;
}

.proj.draw figcaption {
  position: static;
  background: var(--navy);
}

.proj:hover {
  border-color: var(--steel-l);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(-5px);
}

.proj:hover img {
  transform: scale(1.03);
}

@media(max-width: 820px) {
  .projs {
    grid-template-columns: 1fr;
  }
  .proj img {
    height: 280px;
  }
}

/* Why Section (Dark Corporate Background) */
.why {
  background: #080d16;
  color: var(--paper);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(126, 163, 207, 0.08);
}

.why::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 110, 165, 0.12), transparent 70%);
}

.why .grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  position: relative;
  z-index: 2;
}

.why .item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 30px;
  border-radius: 20px;
  transition: var(--transition);
}

.why .item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(126, 163, 207, 0.2);
  transform: translateY(-3px);
}

.why .item .num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--amber);
  letter-spacing: 0.1em;
}

.why .item h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 23px;
  font-weight: 700;
  margin: 10px 0 12px;
}

.why .item p {
  color: var(--grey);
  font-size: 15.5px;
  font-weight: 300;
}

.why .shead h2 {
  color: var(--paper);
}

.why .shead .kicker {
  color: var(--steel-l);
}

@media(max-width: 820px) {
  .why .grid3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Call to Action Section (Glowing Dynamic Gradient with Grid Form) */
.cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  color: var(--ink);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-glass);
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(229, 139, 41, 0.08) 0%, transparent 60%);
  z-index: 1;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.cta-info {
  text-align: left;
}

.cta-info h2 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 800;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
  color: var(--paper);
}

.cta-info p {
  font-size: 18px;
  margin: 16px 0 32px;
  color: var(--grey);
  font-weight: 300;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-details p {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--ink);
  margin: 0;
}

.contact-details i {
  color: var(--amber);
  font-size: 18px;
  width: 24px;
}

/* Glassmorphism Interactive Form */
.contact-form {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

.form-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--paper);
  padding: 16px;
  font-size: 15px;
  outline: none;
  font-family: var(--font-body);
  transition: var(--transition);
  width: 100%;
}

textarea.form-input {
  resize: vertical;
}

.form-input:focus {
  border-color: var(--amber);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 15px rgba(229, 139, 41, 0.2);
}

.form-label {
  position: absolute;
  left: 16px;
  top: 16px;
  color: var(--grey);
  transition: var(--transition);
  pointer-events: none;
  font-size: 15px;
}

textarea.form-input ~ .form-label {
  top: 16px;
}

/* Float label above when active or focused */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -12px;
  left: 12px;
  font-size: 12px;
  color: var(--amber);
  background: #142844;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(229, 139, 41, 0.3);
}

.contact-form .btn {
  width: 100%;
  text-align: center;
}

@media(max-width: 820px) {
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-form {
    padding: 30px 24px;
  }
}

/* Footer Styles */
footer {
  background: #06090e;
  color: var(--grey);
  padding: 60px 0 30px;
  font-size: 14.5px;
  border-top: 1px solid rgba(126, 163, 207, 0.05);
}

.footgrid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}

footer .brand img {
  height: 50px;
}

footer .brand span {
  font-size: 20px;
}

.fcol h4 {
  font-family: var(--font-heading);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  font-size: 13px;
  margin-bottom: 14px;
}

.fcol p {
  line-height: 1.9;
}

.fnote {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(126, 163, 207, 0.08);
  font-size: 13px;
  color: rgba(142, 164, 194, 0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Scroll Animation Engine (GPU Accelerated) */
.rv {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.rv.in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Scrollytelling Parallax Base */
.parallax-hero {
  position: relative;
  overflow: hidden;
}

/* Micro-animaciones CTAs */
.cta-float {
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(229, 139, 41, 0.3); }
  100% { transform: translateY(0); }
}

/* --- Cinematic Ambient Background --- */
.hero-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #152640 0%, #090e18 100%);
}

.flare {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
  animation: pulse-flare 10s ease-in-out infinite alternate;
}

.flare-1 {
  width: 50vw;
  height: 50vw;
  background: var(--amber);
  top: -20%;
  left: -10%;
  animation-duration: 15s;
}

.flare-2 {
  width: 60vw;
  height: 60vw;
  background: var(--steel-l);
  bottom: -30%;
  right: -10%;
  animation-duration: 18s;
  animation-delay: -5s;
}

/* Subtle texture overlay for industrial feel (grain) */
.hero-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

@keyframes pulse-flare {
  0% { transform: scale(1) translate(0, 0); opacity: 0.4; }
  100% { transform: scale(1.2) translate(5%, 5%); opacity: 0.8; }
}

/* --- Glassmorphism Buttons --- */
:root {
  --glass-white: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  --reflection-top: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 50%);
  --reflection-inner: inset 0 1px 1px rgba(255, 255, 255, 0.45), inset 0 -1px 1px rgba(0, 0, 0, 0.1);
  --blur-md: blur(18px);
}
.glass {
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  background: var(--glass-white);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--reflection-top);
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
}
.glass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  z-index: 2;
}
.glass-btn:active {
  transform: scale(0.96);
}
.glass-btn--primary {
  background: var(--amber);
  border: 1px solid var(--amber);
  box-shadow: 0 4px 15px rgba(229, 139, 41, 0.4);
}
.glass-btn--primary::before {
  display: none;
}
.glass-btn--primary:hover {
  background: #f39735;
  box-shadow: 0 6px 20px rgba(229, 139, 41, 0.6);
  transform: translateY(-2px);
}
.glass-btn--ghost {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}
.glass-btn--ghost:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

/* --- Quote Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 14, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-content {
  width: 90%;
  max-width: 500px;
  background: rgba(20, 40, 68, 0.5);
  border: 1px solid rgba(126, 163, 207, 0.2);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.4s ease;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--grey);
  font-size: 32px;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  padding: 0;
}
.modal-close:hover {
  color: var(--amber);
}

/* --- Sticky Scrollytelling --- */
.pin-spacer {
  position: relative;
  width: 100%;
}
.pin-section {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.pin-item {
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
}

/* --- Language Switcher --- */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  margin: 0 16px;
  font-size: 20px;
}
.lang-switcher a {
  opacity: 0.5;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.lang-switcher a:hover {
  opacity: 1;
  transform: scale(1.1);
}
.lang-switcher .active {
  opacity: 1;
  transform: scale(1.1);
  cursor: default;
}
.lang-switcher .sep {
  color: var(--grey);
  margin: 0 10px;
  font-size: 15px;
  opacity: 0.3;
}

/* --- Welder Sparks Effect --- */
.welder-spark {
  position: absolute;
  width: 3px;
  height: 6px;
  background: #ffffff;
  border-radius: 2px;
  box-shadow: 0 0 8px 2px var(--amber), 0 0 14px 4px rgba(229, 139, 41, 0.7);
  pointer-events: none;
  z-index: 9999;
  animation: spark-shoot 0.8s cubic-bezier(0.1, 1, 0.8, 1) forwards;
}

@keyframes spark-shoot {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0) rotate(180deg); opacity: 0; }
}
