/* MGD Metallic — 2026 welding / industrial */
:root {
  --bg: #0c0d0f;
  --bg-elevated: #141618;
  --bg-card: #1a1c1f;
  --text: #e8eaed;
  --text-muted: #9ca3af;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-dim: rgba(245, 158, 11, 0.15);
  --border: #2d3136;
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --header-h: 72px;
  --container: min(1120px, 92vw);
  --container-wide: min(1280px, 94vw);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}
a:hover {
  color: var(--accent-hover);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.container {
  width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}
.container-wide {
  width: var(--container-wide);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header — max 1400px, background only at top */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  overflow: visible;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.header.header--at-top {
  background: rgba(12, 13, 15, 0.85);
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  align-self: flex-end;
  display: flex;
  align-items: flex-end;
  margin-top: auto;
  padding-bottom: 0;
}
.logo img {
  height: 72px;
  width: auto;
  margin-bottom: -36px; /* half logo below header */
  display: block;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex: 1;
  gap: 0.5rem;
}
.nav a {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav a:hover {
  color: #e8eaed;
}
.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--bg) !important;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  white-space: nowrap;
}
.btn-phone:hover {
  background: var(--accent-hover);
  color: var(--bg) !important;
  opacity: 1;
}
.header-contacts {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-whatsapp {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #25d366 !important;
  border: 1px solid #25d366;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.btn-whatsapp:hover {
  background: #25d366;
  color: var(--bg) !important;
}
.btn-phone-icon::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  border-radius: var(--radius);
}
.menu-toggle::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  box-shadow: 0 7px 0 currentColor, 0 14px 0 currentColor;
}

@media (max-width: 900px) {
  .nav { display: none; }
  .btn-phone-text { display: none; }
  .btn-phone { padding: 0.6rem 0.75rem; }
  .menu-toggle { display: block; }
  .nav.is-open {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    background: var(--bg);
    padding: 2rem;
  }
  .nav.is-open a { font-size: 1.25rem; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,13,15,0.5) 0%, rgba(12,13,15,0.85) 70%, var(--bg) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.hero-title {
  font-size: 1.5rem; /* 1rem smaller than hero-label */
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.btn-whatsapp.btn {
  background: #25d366;
  color: #fff !important;
  border: none;
}
.btn-whatsapp.btn:hover {
  background: #20bd5a;
  color: #fff !important;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.contact-actions .btn-whatsapp { color: var(--bg) !important; }
.btn-icon::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center/contain no-repeat;
}
/* Sections */
.section {
  padding: 4.5rem 0;
}
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 2.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: 1.5rem; /* 1rem smaller than section-label */
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 56ch;
}
.section-lead.center { margin-left: auto; margin-right: auto; text-align: center; }

/* About */
.section-about { background: var(--bg-elevated); }
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 800px) {
  .section-grid { grid-template-columns: 1fr; }
  .section-media { order: -1; }
}
.section-media img {
  border-radius: var(--radius-lg);
  width: 100%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.about-blocks { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.about-block {
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.about-block h3 { margin: 0 0 0.35rem; font-size: 1rem; color: var(--accent); }
.about-block p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }

/* Services */
.section-services { background: var(--bg); }
.services-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.services-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-weight: 500;
}
.services-icon {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
}
.services-note {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.services-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.services-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (max-width: 700px) {
  .services-gallery { grid-template-columns: 1fr; }
}

/* Advantages */
.section-advantages { background: var(--bg-elevated); }
.advantages-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.advantages-grid li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.advantage-icon {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Materials */
.section-materials { background: var(--bg); }
.materials-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.materials-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}
.material-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}
.materials-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}
.materials-visual img { width: 100%; }

/* Certifications */
.section-certs { background: var(--bg-elevated); }
.certs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem 2rem;
  max-width: 900px;
}
.certs-list li {
  position: relative;
  padding-left: 1.5rem;
}
.certs-list li:nth-child(1) { grid-column: 1; grid-row: 1; }
.certs-list li:nth-child(2) { grid-column: 1; grid-row: 2; }
.certs-list li:nth-child(3) { grid-column: 2; grid-row: 1; }
.certs-list li:nth-child(4) { grid-column: 2; grid-row: 2; }
.certs-list li:nth-child(5) { grid-column: 3; grid-row: 1; }
.certs-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
@media (max-width: 640px) {
  .certs-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .certs-list li:nth-child(n) { grid-column: 1; grid-row: auto; }
}

/* Workshop */
.section-workshop { background: var(--bg); }
.workshop-stats {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.workshop-stats li {
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.workshop-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.workshop-gallery img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (max-width: 600px) {
  .workshop-gallery { grid-template-columns: 1fr; }
}

/* Gallery */
.section-gallery { background: var(--bg-elevated); padding: 3rem 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Contact */
.section-contact { background: var(--bg); }
.contact-intro {
  margin-bottom: 2rem;
  color: var(--text-muted);
}
.contact-phone-block {
  margin-bottom: 2rem;
  padding: 1.5rem 2rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  text-align: center;
}
.contact-phone-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
}
.contact-phone {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text) !important;
  margin-bottom: 1rem;
}
.contact-phone:hover { color: var(--accent) !important; }
.contact-address {
  margin-bottom: 2rem;
  color: var(--text-muted);
}
.contact-emails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.contact-email-block {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}
.contact-email-block strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.contact-email-block a {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  text-align: center;
}
.footer-logo img {
  height: 64px;
  width: auto;
  margin: 0 auto 1rem;
  opacity: 0.9;
}
.footer-phone {
  margin: 0 0 0.25rem;
  font-weight: 600;
}
.footer-phone a { color: var(--text); }
.footer-address {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Floating contact button (like expressevacuator) */
.fab-wrap {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.fab-panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.2s ease, visibility 0.2s, transform 0.2s ease;
}
.fab-wrap.is-open .fab-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.fab-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text) !important;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.fab-item:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg) !important;
  transform: scale(1.05);
}
.fab-item-wa:hover {
  background: #25d366;
  border-color: #25d366;
}
.fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
  transition: background 0.2s, transform 0.15s;
  animation: fab-pulse 2s ease-in-out infinite;
}
.fab-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}
.fab-btn:focus {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}
.fab-wrap.is-open .fab-btn {
  animation: none;
  transform: rotate(45deg);
}
.fab-btn-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
}
.fab-btn-icon::before,
.fab-btn-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 1px;
}
.fab-btn-icon::before {
  width: 20px;
  height: 2px;
  top: 50%;
  left: 0;
  margin-top: -1px;
}
.fab-btn-icon::after {
  width: 2px;
  height: 20px;
  left: 50%;
  top: 0;
  margin-left: -1px;
}
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 4px 28px rgba(245, 158, 11, 0.7), 0 0 0 8px rgba(245, 158, 11, 0.1); }
}
