/* ===== L&P Tech — Global Stylesheet v3 ===== */

/* --- Fonts --- */
@import url('https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&display=swap');

/* --- Custom Properties --- */
:root {
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-400: #4ade80;
  --green-300: #86efac;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --green-glow: rgba(34,197,94,.25);

  --dark-950: #0a0a0a;
  --dark-900: #111111;
  --dark-800: #1a1a1a;
  --dark-700: #262626;
  --dark-600: #333333;
  --dark-500: #555555;

  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #b8b8b8;
  --gray-500: #525252;
  --gray-600: #3d4740;

  --white: #ffffff;

  --font: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,.18);
  --shadow-green: 0 8px 30px rgba(34,197,94,.25);

  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 2px;

  --max-width: 1200px;
  --nav-height: 64px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--dark-800);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font);
  line-height: 1.15;
  color: var(--dark-900);
  letter-spacing: -.025em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin-bottom: .85rem; color: var(--gray-500); }

.section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green-500);
  margin-bottom: .5rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--green-500);
}

.section-title { margin-bottom: 1rem; }

.section-desc {
  max-width: 600px;
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.7;
}

.bg-white .section-desc,
.bg-light .section-desc,
.about-text .section-desc {
  color: var(--gray-500);
}

.service-card p,
.capability-card p,
.machine-item p {
  color: var(--gray-500);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }

/* --- Navigation (dark) --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  z-index: 1000;
  transition: box-shadow .3s, background .3s;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.96);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  height: 36px;
  width: auto;
  filter: invert(1);
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.6);
  transition: color .2s, background .2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}
.nav-cta {
  background: var(--green-500) !important;
  color: var(--dark-950) !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-sm) !important;
  transition: all .2s !important;
}
.nav-cta:hover {
  background: var(--green-400) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark-950);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.35) contrast(1.1);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,0.9) 0%,
    rgba(10,10,10,0.5) 50%,
    rgba(10,10,10,0.7) 100%
  );
}
.hero .container {
  position: relative; z-index: 1;
}
.hero-content {
  max-width: 680px;
  padding: 120px 0 80px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34,197,94,.06);
  border: 1px solid rgba(34,197,94,.3);
  color: var(--green-400);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green-500);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}
.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero h1 .accent {
  color: var(--green-500);
}
.hero-desc {
  font-size: 1.06rem;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
}
.btn-primary {
  background: var(--green-500);
  color: var(--dark-950);
  box-shadow: 0 0 20px rgba(34,197,94,0.25);
}
.btn-primary:hover {
  background: var(--green-400);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(34,197,94,0.35);
}
.btn-outline {
  background: transparent;
  color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.2);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.06);
}
.btn-dark-outline {
  background: transparent;
  color: var(--dark-800);
  border: 1.5px solid var(--gray-200);
}
.btn-dark-outline:hover {
  border-color: var(--green-500);
  color: var(--green-600);
  background: var(--green-50);
}

/* --- Stats bar --- */
.stats-bar {
  background: var(--dark-900);
  padding: 0;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.stat-item {
  padding: 32px 16px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.stat-item:last-child { border-right: none; }
.stat-item h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-500);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.stat-item p {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  margin: 0;
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--green-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  border-color: var(--green-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.service-icon {
  width: 46px; height: 46px;
  background: rgba(34,197,94,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--green-500);
}
.service-card h3 { margin-bottom: 8px; }
.service-card p {
  font-size: .9rem;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.6;
}

/* --- Capabilities (light variant) --- */
/* ===== ABOUT SECTION ===== */
.about-section {
  background: var(--white);
  color: var(--dark-950);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-image::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.15), transparent);
}
.about-text .section-desc { color: var(--gray-500); }

.capabilities-section {
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
}
.capabilities-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}
.capabilities-header .section-desc { color: var(--gray-400); margin: 0 auto; }
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.capability-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 36px 28px;
  position: relative;
  transition: all 0.3s ease;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.capability-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--green-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s;
}
.capability-card:hover::before { transform: scaleX(1); }
.capability-card:hover {
  border-color: rgba(34,197,94,0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.capability-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34,197,94,0.1);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  color: var(--green-500);
}
.capability-card h3 {
  font-size: 1.06rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.capability-card p {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--gray-500);
  margin: 0;
}

/* --- Gallery / Products Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 36px;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay span {
  color: var(--white);
  font-size: .82rem;
  font-weight: 600;
}
.gallery-item.featured {
  grid-column: span 2;
  grid-row: span 2;
}

/* --- Machine list --- */
.machine-list { margin-top: 36px; }
.machine-category { margin-bottom: 32px; }
.machine-category h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-100);
}
.machine-category h3 .tag {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
}
.machine-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}
.machine-item:last-child { border-bottom: none; }
.machine-dot {
  width: 8px; height: 8px;
  background: var(--green-500);
  border-radius: 0;
  margin-top: 7px;
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--green-glow);
}
.machine-item h4 { margin-bottom: 2px; }
.machine-item p {
  font-size: .85rem;
  color: var(--gray-500);
  margin: 0;
}

/* --- Two-column layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.two-col-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.two-col-image img {
  width: 100%; height: auto;
  display: block;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 36px;
}
.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 44px; height: 44px;
  background: rgba(34,197,94,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green-500);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-item h4 { font-size: .92rem; margin-bottom: 2px; }
.contact-item p { font-size: .88rem; margin: 0; color: var(--gray-500); }
.contact-item a {
  color: var(--green-500);
  font-weight: 600;
  transition: color .2s;
}
.contact-item a:hover { color: var(--green-600); }

.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 340px;
}
.contact-map iframe {
  width: 100%; height: 100%;
  min-height: 340px;
  border: 0;
}

/* --- Billing info card --- */
.billing-card {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 24px;
  border-left: 3px solid var(--green-500);
}
.billing-card h4 {
  margin-bottom: 12px;
  color: var(--dark-800);
}
.billing-card p {
  font-size: .88rem;
  margin-bottom: 3px;
  color: var(--gray-500);
}

/* --- Footer --- */
.footer {
  background: var(--dark-900);
  color: rgba(255,255,255,.65);
  padding: 56px 0 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}
.footer-brand p {
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  max-width: 320px;
  margin-top: 14px;
}
.footer-logo {
  height: 32px;
  width: auto;
  filter: invert(1);
  opacity: .8;
}
.footer h4 {
  color: var(--gray-400);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  padding: 5px 0;
  transition: color .2s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}

/* --- Page Header (for inner pages) --- */
.page-header {
  background: var(--dark-950);
  padding: 120px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(34,197,94,.08) 0%, transparent 65%);
  border-radius: 50%;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,197,94,0.3), transparent);
}
.page-header .section-label { color: var(--green-400); }
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p {
  color: rgba(255,255,255,.7);
  font-size: 1.05rem;
  max-width: 520px;
}

/* --- Alternating sections bg --- */
.bg-light { background: var(--gray-100); }
.bg-white { background: var(--white); }

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  backdrop-filter: blur(20px);
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }

/* --- Animations --- */
.fade-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease, transform .6s ease;
}
.js-ready .fade-up {
  opacity: 0;
  transform: translateY(24px);
}
.js-ready .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Floating phone button (mobile only) --- */
.floating-phone {
  display: none;
}

@media (max-width: 768px) {
  .floating-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    background: var(--green-500);
    color: var(--dark-950);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(34,197,94,0.4), 0 2px 8px rgba(0,0,0,0.2);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .floating-phone:active {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 28px rgba(34,197,94,0.5), 0 4px 12px rgba(0,0,0,0.25);
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .two-col { gap: 36px; }
  .about-grid { gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%; right: 0;
    width: 280px;
    height: auto;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    background: var(--dark-900);
    flex-direction: column;
    padding: 16px 32px 32px;
    gap: 4px;
    border-left: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: -4px 8px 32px rgba(0,0,0,0.4);
    z-index: 1001;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 1rem;
    padding: 10px 0;
    color: rgba(255,255,255,0.7);
  }
  .nav-toggle { display: flex; }

  .hero { min-height: 80vh; }
  .hero-content { padding: 100px 0 60px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.featured { grid-column: span 2; grid-row: span 1; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-image { order: -1; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .two-col-text { order: 0 !important; }
  .two-col-image { order: 1 !important; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .page-header { padding: 100px 0 40px; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.featured { grid-column: span 1; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero h1 { font-size: 2rem; }
}