/* =========================================
   ALLIMETAL - Modern Industrial Stylesheet
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Oswald:wght@500;600;700&display=swap');

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #d97706;
  --accent-hover: #b45309;
  --text-dark: #1e293b;
  --text-muted: #475569;
  --bg-surface: #ffffff;
  --bg-soft: #f1f5f9;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.1);
  --radius: 10px;
  --max-width: 1200px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  background-color: #f8fafc;
  background-image: linear-gradient(rgba(248, 250, 252, 0.92), rgba(248, 250, 252, 0.92)), url('../images/bg.png');
  background-repeat: repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

h1, h2, h3, h4, h5 {
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  color: var(--primary);
  line-height: 1.25;
  letter-spacing: 0.3px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header & Navigation ---------- */
.site-header {
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 80px;
  padding: 10px 0;
}

.logo-link img {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-list a {
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-list a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-list a.active {
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
}

.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  overflow: hidden;
}

.lang-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 11px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  background: var(--accent);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  color: #ffffff;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

/* ---------- Main Layout & Page Header ---------- */
main {
  flex: 1;
  padding: 36px 0 64px;
}

.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  padding: 44px 0;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-banner h1 {
  color: #ffffff;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin-bottom: 8px;
}

.page-banner p {
  color: #cbd5e1;
  max-width: 720px;
  font-size: 1rem;
}

.section-block {
  margin-bottom: 48px;
}

.section-heading {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

/* ---------- Home: Top GIF Banner & Hero Split ---------- */
.top-showcase-gif {
  background: var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.15);
}

.top-showcase-gif img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.hero-card {
  background: var(--bg-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: stretch;
  margin-bottom: 40px;
}

.hero-card-media {
  min-height: 320px;
  overflow: hidden;
}

.hero-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-content {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.hero-tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(217, 119, 6, 0.12);
  color: var(--accent-hover);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: 999px;
}

.hero-card-content h1 {
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
}

.hero-card-content p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
}

/* ---------- Home: Full Width AlliMetal Precision Banner ---------- */
.precision-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: #05100c;
  background-image: linear-gradient(95deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.78) 55%, rgba(15, 23, 42, 0.45) 100%), url('../images/AlliMetal.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 48px 40px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-md);
}

.precision-banner-inner {
  max-width: 700px;
}

.precision-banner h2 {
  color: #ffffff;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-bottom: 16px;
}

.precision-banner p {
  color: #e2e8f0;
  font-size: 0.98rem;
  margin-bottom: 14px;
}

.precision-banner p:last-child {
  margin-bottom: 0;
}

/* ---------- Featured Cards (Home) & Services Grid ---------- */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-media {
  height: 220px;
  overflow: hidden;
  background: var(--primary);
}

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

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

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card-body h3,
.card-body h4 {
  font-size: 1.3rem;
  color: var(--primary);
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ---------- About Page ---------- */
.about-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 36px;
  align-items: start;
}

.about-media-card {
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 14px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 104px;
}

.about-media-card img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.about-content {
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.about-content h2 {
  font-size: 1.8rem;
  margin-bottom: 18px;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.98rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.highlight-box {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  padding: 16px;
  border-radius: 6px;
}

.highlight-box strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.highlight-box span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Products Page (pro.html) ---------- */
.product-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}

.product-top {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 28px;
}

.product-main-img {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: zoom-in;
}

.product-main-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-main-img:hover img {
  transform: scale(1.03);
}

.product-text h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.product-text p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 0.96rem;
}

.product-gallery-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-thumb {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-soft);
  cursor: zoom-in;
}

.gallery-thumb img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 26px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Contact Page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: start;
}

.contact-info-card,
.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.contact-info-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 22px;
  object-fit: cover;
}

.contact-info-card h2 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.contact-info-card p {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 0.96rem;
}

.contact-form-card h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: #f8fafc;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.16);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 7px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.submit-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary);
  color: #cbd5e1;
  border-top: 3px solid var(--accent);
  padding: 36px 0 24px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 44px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.92rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 18px;
  text-align: center;
  font-size: 0.86rem;
  color: #94a3b8;
}

/* ---------- Responsive Media Queries ---------- */
@media (max-width: 992px) {
  .hero-card,
  .about-layout,
  .product-top,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .about-media-card {
    position: static;
  }

  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 22px;
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    display: none;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .nav-list a {
    display: block;
    padding: 12px 14px;
  }

  .lang-switcher {
    align-self: flex-start;
    margin-top: 8px;
  }
}

@media (max-width: 640px) {
  .card-grid-3,
  .card-grid-2,
  .product-gallery {
    grid-template-columns: 1fr;
  }

  .hero-card-content,
  .precision-banner,
  .about-content,
  .product-section,
  .contact-info-card,
  .contact-form-card {
    padding: 22px;
  }

  .logo-link img {
    height: 44px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}