/* ========================================
   Construmais - Materiais de Construção
   CSS3 - Arquivo separado para FTP
   ======================================== */

:root {
  --primary: #e67e22;
  --primary-dark: #d35400;
  --dark: #2c3e50;
  --gray: #7f8c8d;
  --light: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
}

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

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--dark);
}

.menu {
  display: flex;
  gap: 28px;
  list-style: none;
}

.menu a {
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.menu a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--dark);
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.15s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}

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

.btn-header {
  padding: 10px 22px;
  font-size: 0.95rem;
}

.btn-full {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
  color: white;
  padding: 90px 0 100px;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-title p {
  color: var(--gray);
  font-size: 1.05rem;
}

/* ---------- Products ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #eee;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.product-img {
  height: 160px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.product-info p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

/* ---------- About ---------- */
.about {
  background: var(--light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 14px;
}

.features {
  list-style: none;
  margin-top: 20px;
}

.features li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.features li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
}

.about-img {
  background: var(--dark);
  height: 320px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 5rem;
}

/* ---------- Contact ---------- */
.contact-box {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

/* ---------- Footer ---------- */
footer {
  background: var(--dark);
  color: white;
  padding: 40px 0 25px;
  text-align: center;
}

.footer-logo {
  justify-content: center;
  margin-bottom: 12px;
  color: white;
}

.footer-links {
  margin: 16px 0;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary);
}

.footer-address {
  margin-top: 8px;
}

.footer-copy {
  margin-top: 20px;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

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

  .menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow);
  }

  .menu.active {
    display: flex;
  }

  .btn-header {
    display: none;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-img {
    height: 220px;
    order: -1;
  }

  .contact-box {
    padding: 28px 20px;
  }
}
