:root {
  --bg: #07131f;
  --surface: #0f2237;
  --surface-2: #16324d;
  --text: #f4f7fb;
  --muted: #aebfca;
  --accent: #f4a300;
  --accent-2: #ffcf66;
  --border: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #02070f 0%, #081724 100%);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

/* ---------- Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-text > * {
  animation: heroFadeUp 0.8s ease both;
}

.hero-text > *:nth-child(2) { animation-delay: 0.08s; }
.hero-text > *:nth-child(3) { animation-delay: 0.16s; }
.hero-text > *:nth-child(4) { animation-delay: 0.24s; }

.hero-card {
  animation: heroFadeUp 0.8s ease 0.3s both;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Navigation ---------- */
.site-header {
  background: radial-gradient(circle at top left, rgba(244, 163, 0, 0.24), transparent 32%), var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.brand-text {
  line-height: 1;
}

.brand-text small {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  color: var(--muted);
}

.nav-links a {
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-links a.active {
  color: var(--accent-2);
  font-weight: 600;
}

.nav-cta {
  padding: 0.55rem 1rem !important;
  border-radius: 999px;
  background: var(--accent);
  color: #111 !important;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--accent-2);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(7, 19, 31, 0.78), rgba(6, 16, 26, 0.94)),
    url('assets/foundry.jpg') center/cover no-repeat;
  background-attachment: fixed;
  padding: 3rem 0 5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent-2);
  background: rgba(244, 163, 0, 0.12);
  border: 1px solid rgba(244, 163, 0, 0.35);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 3.5rem 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0 0 0.8rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #111;
  border: none;
}

.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 10px 24px rgba(244, 163, 0, 0.35);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(244, 163, 0, 0.08);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.hero-card,
.card,
.info-box,
.feature {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.4rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.feature {
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.feature:hover {
  transform: translateY(-5px);
  border-color: rgba(244, 163, 0, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.step,
.industry {
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.step:hover,
.industry:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 163, 0, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.product-media img,
.media-frame img {
  transition: transform 0.6s ease;
}

.product-media:hover img,
.media-frame:hover img {
  transform: scale(1.05);
}

.hero-card ul,
.info-box ul {
  padding-left: 1rem;
  color: var(--muted);
  margin: 0.6rem 0 0;
}

.hero-card li,
.info-box li {
  margin-bottom: 0.4rem;
}

/* ---------- Page header (interior pages) ---------- */
.page-hero {
  background: radial-gradient(circle at top right, rgba(244, 163, 0, 0.16), transparent 45%), var(--bg);
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}

.page-hero.has-image {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(7, 19, 31, 0.78), rgba(7, 19, 31, 0.9)),
    var(--page-img) center/cover no-repeat;
  padding: 6rem 0;
}

.page-hero.has-image h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.page-hero.has-image p {
  font-size: 1.05rem;
}

.page-hero.bg-products { --page-img: url('assets/steel.jpg'); }
.page-hero.bg-services { --page-img: url('assets/logistics.jpg'); }
.page-hero.bg-about { --page-img: url('assets/foundry.jpg'); }
.page-hero.bg-contact { --page-img: url('assets/aluminium.jpg'); }

.page-hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 680px;
  margin: 0;
}

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 0;
}

.section-heading {
  margin-bottom: 1.8rem;
}

.card-grid,
.features-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 163, 0, 0.5);
  box-shadow: 0 28px 52px rgba(0, 0, 0, 0.34);
}

.card-media {
  height: 190px;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.card:hover .card-media img {
  transform: scale(1.07);
}

.card-body {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card h3,
.feature h3 {
  margin-top: 0;
}

.card p,
.feature p {
  color: var(--muted);
  margin-bottom: 0;
}

.card-link {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--accent-2);
  font-weight: 600;
}

.about-section {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.about-grid p {
  color: var(--muted);
}

/* ---------- Spacing utilities ---------- */
.py-xl { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.py-lg { padding-top: 4rem; padding-bottom: 4rem; }

/* ---------- Media + text block ---------- */
.media-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0;
}

.media-block.reverse .media-frame {
  order: 2;
}

.media-frame {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.media-frame img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.media-block p {
  color: var(--muted);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  color: var(--muted);
}

.check-list li {
  padding: 0.4rem 0 0.4rem 1.7rem;
  position: relative;
}

.check-list li::before {
  content: '\2714';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.product-detail:last-child {
  border-bottom: none;
}

.product-detail.reverse .product-media {
  order: 2;
}

.product-media {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.product-media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.product-detail h2 {
  margin-top: 0;
}

.product-detail p {
  color: var(--muted);
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  color: var(--muted);
}

.spec-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.spec-list li span:last-child {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, rgba(244, 163, 0, 0.14), rgba(255, 207, 102, 0.05));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-band .container {
  padding: 3rem 0;
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: var(--muted);
  margin: 0 auto 1.4rem;
  max-width: 560px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.contact-info li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.contact-info li strong {
  color: var(--text);
  display: block;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.contact-info a {
  color: var(--accent-2);
}

.form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.6rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

/* Select: solid dark control + dark native dropdown */
.field select {
  background-color: var(--surface);
  color-scheme: dark;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23aebfca' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}

.field select option {
  background-color: var(--surface);
  color: var(--text);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.form .btn-primary {
  width: 100%;
  margin-top: 0.4rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.9rem;
}

/* ---------- Stats band ---------- */
.stats-band {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.6rem 0;
  text-align: center;
}

.stat .stat-num {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 800;
  color: var(--accent-2);
  line-height: 1;
}

.stat .stat-label {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.4rem;
}

/* ---------- Section helpers ---------- */
.section-alt {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading.center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading p.sub {
  color: var(--muted);
  margin: 0.4rem 0 0;
}

/* ---------- Process steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  counter-reset: step;
}

.step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.4rem;
  position: relative;
}

.step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.step p {
  color: var(--muted);
  margin: 0;
  font-size: 0.94rem;
}

/* ---------- Industries ---------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.industry {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 1rem 1.2rem;
}

.industry .ico {
  font-size: 1.6rem;
  line-height: 1;
}

.industry span.name {
  font-weight: 600;
}

.industry small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}

/* ---------- Testimonial ---------- */
.testimonial {
  background:
    linear-gradient(180deg, rgba(9, 22, 35, 0.86), rgba(9, 22, 35, 0.92)),
    url('assets/steel.jpg') center/cover no-repeat;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.testimonial .container {
  padding: 4.5rem 0;
  text-align: center;
  max-width: 820px;
}

.testimonial blockquote {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  font-weight: 600;
  margin: 0 0 1.2rem;
}

.testimonial .quote-mark {
  font-size: 3rem;
  color: var(--accent);
  line-height: 0.5;
}

.testimonial cite {
  color: var(--muted);
  font-style: normal;
}

/* ---------- Richer CTA band ---------- */
.cta-band.large {
  background:
    linear-gradient(120deg, rgba(7, 19, 31, 0.92), rgba(6, 16, 26, 0.86)),
    url('assets/aluminium.jpg') center/cover no-repeat;
}

.cta-band.large::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(244, 163, 0, 0.25), transparent 45%);
  pointer-events: none;
}

.cta-band.large {
  position: relative;
}

.cta-band.large .container {
  position: relative;
}

.cta-band.large .container {
  padding: 5rem 0;
}

.cta-band.large h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

/* ---------- Footer ---------- */
.footer {
  padding: 2.8rem 0 2rem;
  background: #02070f;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.footer-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.footer-brand h2 {
  margin: 0;
}

.footer h2 {
  margin-top: 0;
}

.footer h3 {
  margin: 0 0 0.6rem;
}

.footer p {
  color: var(--muted);
  max-width: 320px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
}

.footer ul li {
  margin-bottom: 0.45rem;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 1.4rem;
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav {
    position: relative;
  }

  .hero-content,
  .about-grid,
  .contact-grid,
  .product-detail,
  .media-block,
  .footer-grid,
  .card-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .media-block.reverse .media-frame {
    order: 0;
  }

  .media-frame img {
    height: 240px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .industries-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    background-attachment: scroll;
    min-height: 0;
    padding: 2.5rem 0 4rem;
  }

  .page-hero.has-image {
    min-height: 0;
    padding: 3.5rem 0;
  }

  .product-detail.reverse .product-media {
    order: 0;
  }

  .product-media img {
    height: 240px;
  }
}
