/* Alltec Usinagem - Custom CSS */
:root {
  --red: #c90000;
  --dark-red: #970000;
  --black: #151515;
  --gray: #606060;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --border: #e5e5e5;
  --shadow: 0 12px 35px rgba(0,0,0,0.08);
  --shadow-hover: 0 20px 45px rgba(201, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

body {
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  padding-top: 90px;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding-left: 24px;
  padding-right: 24px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: height 0.3s ease;
}

header.scrolled .nav {
  height: 65px;
}

.logo-container {
  display: flex;
  align-items: center;
  height: 100%;
  transition: all 0.3s ease;
}

.logo-container img {
  height: 70px;
  max-height: 70px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  transition: all 0.3s ease;
  display: block;
}

header.scrolled .logo-container img {
  height: 46px;
  max-height: 46px;
}

nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 24px;
  font-size: 0.94rem;
  font-weight: 600;
}

nav a {
  transition: color 0.2s;
  position: relative;
}

nav a:hover {
  color: var(--red);
}

.nav-button {
  background: var(--red);
  color: var(--white) !important;
  padding: 11px 22px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-button:hover {
  background: var(--dark-red);
  transform: scale(1.04);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--black);
  cursor: pointer;
  padding: 8px;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 90px;
  left: 0;
  width: 100%;
  background: var(--white);
  border-bottom: 2px solid var(--red);
  padding: 24px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  z-index: 999;
  transition: top 0.3s ease;
}

header.scrolled + .mobile-nav,
header.scrolled ~ .mobile-nav {
  top: 65px;
}

.mobile-nav.open {
  display: block;
  animation: slideDown 0.3s ease forwards;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav ul li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav ul li a {
  display: block;
  padding: 12px 0;
  font-size: 1.05rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.mobile-nav ul li a.nav-button {
  border-bottom: none !important;
  margin-top: 8px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  box-sizing: border-box;
  padding: 13px 20px;
}

/* Hero Section */
.hero {
  min-height: 640px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.90) 50%, rgba(255,255,255,0.40) 100%),
              url("../images/logo.png") calc(100% + 20px) center / 780px no-repeat;
}

.hero::after {
  content: "";
  width: 580px;
  height: 580px;
  position: absolute;
  right: -100px;
  top: -80px;
  border: 52px solid rgba(201, 0, 0, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
  padding: 40px 0;
}

.eyebrow {
  color: var(--red);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 14px;
  display: inline-block;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 22px;
  font-weight: 800;
}

h1 span {
  color: var(--red);
}

.hero-description {
  max-width: 620px;
  color: var(--gray);
  font-size: 1.12rem;
  margin-bottom: 32px;
  line-height: 1.65;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 6px;
  border: 2px solid var(--red);
  font-weight: 700;
  transition: all 0.3s ease;
  white-space: nowrap;
  gap: 10px;
  font-size: 0.98rem;
  cursor: pointer;
}

.button-primary {
  color: var(--white);
  background: var(--red);
}

.button-primary:hover {
  background: var(--dark-red);
  border-color: var(--dark-red);
  transform: scale(1.03);
}

.button-outline {
  color: var(--red);
  background: transparent;
}

.button-outline:hover {
  color: var(--white);
  background: var(--red);
  transform: scale(1.03);
}

/* Highlights */
.highlights {
  background: var(--black);
  color: var(--white);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 32px 0;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 16px;
}

.highlight-number {
  color: var(--red);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.highlight-text {
  color: #e2e2e2;
  font-size: 0.92rem;
  line-height: 1.35;
}

.highlight-text strong {
  display: block;
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 2px;
}

/* General Sections */
section {
  padding: 92px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 14px;
  font-weight: 800;
}

.section-heading p {
  color: var(--gray);
  font-size: 1.06rem;
}

/* Services */
.services {
  background: var(--light-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  border-radius: 8px;
  padding: 26px 18px;
  min-height: 255px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(201, 0, 0, 0.3);
}

.service-link {
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 1.4rem;
  box-shadow: 0 6px 15px rgba(201, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.service-card p {
  color: var(--gray);
  font-size: 0.93rem;
  line-height: 1.5;
  flex-grow: 1;
}

.service-card .card-arrow {
  margin-top: 16px;
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.about-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
}

.about-content p {
  color: var(--gray);
  margin-bottom: 18px;
  font-size: 1.02rem;
}

.about-box {
  position: relative;
  min-height: 360px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(201,0,0,0.92), rgba(120,0,0,0.95)),
              url("../images/logo.png") center/cover no-repeat;
  box-shadow: 0 20px 40px rgba(201, 0, 0, 0.2);
}

.about-box::before, .about-box::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transform: rotate(45deg);
}

.about-box::before { width: 280px; height: 280px; }
.about-box::after { width: 200px; height: 200px; }

.about-box-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 30px;
}

.about-box-content strong {
  display: block;
  font-size: 5.2rem;
  line-height: 1;
  font-weight: 800;
}

.about-box-content span {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 12px;
  text-transform: uppercase;
}

.iso-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 20px;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-left: 5px solid var(--red);
  border-radius: 6px;
  font-weight: 700;
}

.iso-badge small {
  display: block;
  color: var(--gray);
  font-weight: normal;
  font-size: 0.88rem;
}

/* CTA Banner */
.cta {
  padding: 75px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--red) 0%, var(--dark-red) 100%);
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 10px;
  font-weight: 800;
}

.cta p {
  color: #ffe5e5;
  font-size: 1.1rem;
}

.cta .button {
  flex-shrink: 0;
  color: var(--red);
  background: var(--white);
  border-color: var(--white);
}

.cta .button:hover {
  color: var(--white);
  background: transparent;
  border-color: var(--white);
}

/* Location */
.location {
  background: var(--white);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.location-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-info h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 18px;
  font-weight: 800;
}

.location-info p {
  color: var(--gray);
  margin-bottom: 22px;
  font-size: 1.02rem;
}

.address-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 26px;
  background: var(--light-gray);
  padding: 18px;
  border-radius: 8px;
  border-left: 4px solid var(--red);
}

.address-box p {
  margin: 0;
  color: var(--black);
}

.location-map {
  min-height: 350px;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: 0;
  display: block;
}

/* Contact */
.contact {
  background: var(--light-gray);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 18px;
  font-weight: 800;
}

.contact-info > p {
  color: var(--gray);
  margin-bottom: 28px;
  font-size: 1.02rem;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 14px;
  width: 100%;
}

.contact-list li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  background: var(--white);
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.contact-list-icon {
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  flex: 0 0 38px !important;
  border-radius: 8px;
  background: rgba(201, 0, 0, 0.08);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.contact-list-text {
  flex: 1 1 auto;
  min-width: 0;
}

.contact-list strong {
  display: block;
  color: var(--black);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.contact-list span,
.contact-list a {
  color: var(--gray);
  font-size: 0.95rem;
  transition: color 0.2s;
  word-break: break-all;
  overflow-wrap: anywhere;
  display: block;
}

.contact-list a:hover {
  color: var(--red);
}

/* Contact Card & Form */
.contact-card {
  background: var(--white);
  padding: 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.contact-card h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
  font-weight: 800;
}

.contact-card p {
  color: var(--gray);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: #f7f7f7;
  border: 2px solid #e2e2e2;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #111;
  transition: all 0.2s;
  outline: none;
}

.form-control:focus {
  background: #ffffff;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(201, 0, 0, 0.1);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Footer */
footer {
  color: #cfcfcf;
  background: var(--black);
  padding: 36px 0;
  font-size: 0.92rem;
  border-top: 3px solid var(--red);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

footer strong {
  color: var(--white);
}

footer a {
  color: #ff8585;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--white);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all 0.3s ease;
  animation: pulseGlow 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media(max-width: 1100px) {
  nav ul { gap: 16px; font-size: 0.88rem; }
  .about-grid, .contact-grid, .location-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    width: 100%;
  }
  .about-box { min-height: 300px; }
}

@media(max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media(max-width: 860px) {
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
  }
  nav { display: none; }
  .mobile-toggle { display: block; }
  .highlights-grid { grid-template-columns: 1fr; gap: 20px; }
  .cta-content, .footer-content { flex-direction: column; align-items: flex-start; }
  .cta .button { width: 100%; }
  
  .contact-grid, .location-grid, .about-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
    width: 100% !important;
  }
  .contact-info, .contact-card, .location-info, .location-map, .about-content, .about-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .contact-card {
    padding: 24px 18px !important;
  }
  .contact-list {
    width: 100% !important;
    gap: 12px !important;
  }
  .contact-list li {
    width: 100% !important;
    padding: 14px 12px !important;
    box-sizing: border-box !important;
  }
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .hero {
    min-height: auto !important;
    padding: 20px 0 32px 0 !important;
    align-items: flex-start !important;
    background-size: 300px auto !important;
    background-position: right -30px bottom 10px !important;
  }
  .hero-content {
    padding: 0 !important;
  }
  .eyebrow {
    margin-bottom: 8px !important;
    font-size: 0.78rem !important;
  }
  h1 {
    font-size: clamp(1.95rem, 7.5vw, 2.6rem) !important;
    line-height: 1.12 !important;
    margin-bottom: 12px !important;
  }
  .hero-description {
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
    margin-bottom: 18px !important;
  }
  .buttons {
    gap: 10px !important;
  }
  .button {
    min-height: 46px !important;
    padding: 0 18px !important;
    font-size: 0.92rem !important;
  }
  .hero::after {
    display: none !important;
  }
  .address-box {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media(max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media(max-width: 520px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .buttons {
    flex-direction: column;
    width: 100%;
  }
  .buttons .button {
    width: 100%;
    justify-content: center;
  }
}
