/* =========
   Base
========= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #020617;
  --accent: #f97316;
  --accent-2: #2563eb;
  --accent-soft: rgba(249, 115, 22, 0.16);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --card-bg: #020617;
  --border-soft: rgba(148, 163, 184, 0.4);
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.9);
  --radius-lg: 24px;
  --radius-pill: 999px;
  --transition-fast: 0.2s ease-out;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.18), transparent 55%),
    #020617;
  color: var(--text);
  line-height: 1.6;
}

/* Layout helpers */
.container {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.bg-light {
  background: radial-gradient(
    circle at top left,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.98)
  );
}

.bg-gradient {
  background: linear-gradient(135deg, #0b1120, #020617);
}

/* =========
   Header
========= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: radial-gradient(
    circle at top,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.94)
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.logo-max {
  color: var(--accent);
}

.logo-well {
  color: var(--accent-2);
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width var(--transition-fast);
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  width: 14px;
}

.nav-toggle {
  display: none;
  border: none;
  background: rgba(15, 23, 42, 0.96);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 1.1rem;
  cursor: pointer;
}

.hide-on-mobile {
  /* desktop only */
}

/* =========
   Buttons
========= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #f9fafb;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.45);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    opacity var(--transition-fast);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 55px rgba(37, 99, 235, 0.6);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 163, 184, 0.7);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 1);
}

.btn-small {
  padding-inline: 1.1rem;
  padding-block: 0.45rem;
  font-size: 0.82rem;
}

.full-width {
  width: 100%;
}

/* =========
   Hero
========= */
.hero {
  padding: 90px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.3rem);
  line-height: 1.08;
  margin: 0 0 16px;
}

.hero-subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 30px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.stat {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(
    circle at top left,
    rgba(148, 163, 184, 0.22),
    rgba(15, 23, 42, 0.98)
  );
}

.stat-number {
  font-weight: 600;
  font-size: 1.05rem;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Precision animated underline */
.precision-word {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

.precision-word::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: left center;
  transform: scaleX(0);
  animation: precision-line 2.4s ease-out infinite;
}

@keyframes precision-line {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  15% {
    transform: scaleX(1);
    opacity: 1;
  }
  60% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(0);
    opacity: 0;
  }
}

.accent-text {
  color: var(--accent);
}

/* Hero right panel */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-panel {
  width: 100%;
  max-width: 420px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.38), transparent 55%),
    radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.32), transparent 60%),
    #020617;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
  position: relative;
  padding: 18px 18px 20px;
}

.hero-panel-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 10px;
}

.hero-panel-main {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(
    circle at top left,
    rgba(248, 250, 252, 0.08),
    rgba(15, 23, 42, 1)
  );
  position: relative;
  padding: 16px 16px 14px;
}

.hero-panel-image {
  height: 210px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, #111827, #020617),
    url("../img/fabrication-hero.jpg") center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.hero-panel-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(248, 250, 252, 0.16),
    transparent 55%
  );
  mix-blend-mode: screen;
}

.hero-panel-label {
  position: relative;
  font-size: 0.86rem;
  color: #e5e7eb;
  z-index: 1;
}

.hero-panel-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-panel-meta-title {
  margin: 0;
}

.hero-panel-meta-sub {
  margin: 0;
  font-size: 0.76rem;
}

.hero-panel-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.75rem;
}

.hero-panel-bar {
  position: relative;
  margin-top: 16px;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  overflow: hidden;
}

.hero-panel-bar-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: left center;
  transform: scaleX(0.15);
  animation: bar-animate 3.6s ease-in-out infinite;
}

@keyframes bar-animate {
  0% {
    transform: scaleX(0.15);
  }
  40% {
    transform: scaleX(0.95);
  }
  80% {
    transform: scaleX(0.55);
  }
  100% {
    transform: scaleX(0.15);
  }
}

/* =========
   Cards & grids
========= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(148, 163, 184, 0.18),
    transparent 65%
  );
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

.card-service h3 {
  margin: 10px 0 6px;
}

.card-service p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  font-size: 1.25rem;
}

/* =========
   Process (timeline)
========= */
.timeline {
  border-left: 2px dashed rgba(148, 163, 184, 0.55);
  margin: 0 auto;
  max-width: 640px;
  padding-left: 22px;
}

.timeline-item {
  position: relative;
  padding-left: 10px;
  margin-bottom: 22px;
}

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
}

.timeline-content h3 {
  margin: 0 0 4px;
}

.timeline-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* =========
   Gallery
========= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-item {
  border-radius: 18px;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(31, 41, 55, 1);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.85);
}

.gallery-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.img-gate {
  background-image: linear-gradient(135deg, #111827, #020617),
    url("../img/gate-1.jpg");
}

.img-railing {
  background-image: linear-gradient(135deg, #111827, #020617),
    url("../img/railing-1.jpg");
}

.img-workshop {
  background-image: linear-gradient(135deg, #111827, #020617),
    url("../img/workshop-1.jpg");
}

.gallery-caption {
  padding: 10px 12px 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* =========
   CTA / contact preview
========= */
.cta-section {
  padding: 60px 0 70px;
}

.cta-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-contact {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.cta-contact a {
  color: var(--accent);
  text-decoration: none;
}

/* =========
   Footer
========= */
.site-footer {
  border-top: 1px solid rgba(31, 41, 55, 1);
  padding: 18px 0;
  background: rgba(2, 6, 23, 0.98);
  font-size: 0.85rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-contact a {
  color: var(--muted);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

/* =========
   Reveal animation
========= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.24s;
}

.delay-3 {
  transition-delay: 0.36s;
}

/* =========
   Responsive
========= */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav {
    position: absolute;
    right: 16px;
    top: 76px;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    min-width: 200px;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hide-on-mobile {
    display: none;
  }

  .section {
    padding: 60px 0;
  }

  .hero {
    padding-top: 80px;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 24px, 100%);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
