/*
Theme Name: CBL Vergalhão de Cobre
Theme URI: https://cblcobre.com.br
Author: Recuperado e adaptado para WordPress
Description: Tema institucional para CBL - Laminação Brasileira de Cobre, recuperado do site original (Hostinger AI Builder) e convertido para WordPress.
Version: 1.0
Text Domain: cbl-cobre
*/

:root {
  --copper: #b5651d;
  --copper-dark: #8a4a12;
  --dark: #1c1c1c;
  --navy: #13263b;
  --gray-bg: #f5f3f1;
  --text: #2b2b2b;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Montserrat', 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

a { color: var(--copper); text-decoration: none; }
a:hover { color: var(--copper-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight: 700;
}
h1 { font-size: 2.9rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.6rem; }

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

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

/* Header */
.site-header {
  background: var(--white);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-logo img { max-height: 42px; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a:hover { color: var(--copper); }

.main-nav .has-sub { position: relative; }
.main-nav .sub-menu {
  display: none;
  position: absolute;
  background: var(--white);
  list-style: none;
  padding: 10px 0;
  margin: 10px 0 0;
  min-width: 180px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border-radius: 4px;
}
.main-nav .has-sub:hover .sub-menu { display: block; }
.main-nav .sub-menu li { padding: 5px 20px; }

/* Hero */
.hero {
  background: var(--white);
  padding: 60px 0;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { font-size: 3rem; font-weight: 400; margin-bottom: 20px; color: var(--dark); }
.hero h1 strong { font-weight: 800; }
.hero .subtitle { font-size: 1.1rem; margin-bottom: 25px; }
.hero-img { border-radius: 16px; }

.btn {
  display: inline-block;
  background: var(--copper);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn:hover { background: var(--copper-dark); color: var(--white); }

.btn-light {
  background: var(--white);
  color: var(--copper);
}
.btn-light:hover { background: #f0ece8; color: var(--copper-dark); }

.btn-pill {
  display: inline-block;
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--white);
  padding: 8px 22px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.btn-pill:hover { background: var(--white); color: var(--navy); }

.btn-pill-dark {
  color: var(--copper);
  border-color: var(--copper);
}
.btn-pill-dark:hover { background: var(--copper); color: var(--white); }

/* Sobre a CBL */
.about-cbl {
  background: var(--copper);
  padding: 70px 0;
}
.about-cbl-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: center;
}
.about-cbl-title h2 {
  color: var(--white);
  font-size: 2.4rem;
  margin: 0 0 10px;
}
.about-cbl-subtitle {
  color: rgba(255,255,255,0.9);
  margin: 0;
}
.about-cbl-text p {
  color: var(--white);
  margin: 0 0 15px;
}
.about-cbl-text p:last-child { margin-bottom: 0; }
.about-cbl-text strong { color: var(--white); }

@media (max-width: 782px) {
  .about-cbl-grid { grid-template-columns: 1fr; text-align: left; }
}

/* Section generic */
.section { padding: 60px 0; }
.section.alt { background: var(--white); }
.section h2, .section h3 { color: var(--dark); }

.section ul { padding-left: 0; list-style: none; }
.section ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
}
.section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  background: var(--copper);
  border-radius: 50%;
}

.section-header { text-align: center; max-width: 700px; margin: 0 auto 40px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  border: 1px solid #e5e0dc;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.card img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 20px; }
.card-body h5 { margin: 0 0 10px; color: var(--copper-dark); }

.card.card-dark {
  background: var(--navy);
  border: none;
}
.card.card-dark .card-body h5 { color: var(--white); font-size: 1.35rem; }
.card.card-dark .card-body p { color: #c7cdd3; margin-bottom: 20px; }
.card.card-dark .card-body p strong { color: var(--white); }

.cta-orange {
  background: var(--copper);
  color: var(--white);
}
.cta-orange h4 { color: var(--white); font-size: 1.9rem; }
.cta-orange p { color: rgba(255,255,255,0.9); }

.intro-band {
  background: var(--copper);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.intro-band h1 { color: var(--white); margin: 0 0 15px; }
.intro-band p { color: rgba(255,255,255,0.9); max-width: 800px; margin: 0 auto; }
.intro-band strong { color: var(--white); }

/* Artigo individual do blog */
.entry-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.entry-content h2 {
  color: var(--copper-dark);
  font-size: 1.7rem;
  margin: 40px 0 15px;
}
.entry-content h2:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 20px; }
.entry-content ul,
.entry-content ol { margin: 0 0 25px; padding-left: 0; list-style: none; }
.entry-content ul li,
.entry-content ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}
.entry-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  background: var(--copper);
  border-radius: 50%;
}
.entry-content ol { counter-reset: entry-ol; }
.entry-content ol li::before {
  counter-increment: entry-ol;
  content: counter(entry-ol);
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  background: var(--copper);
  border-radius: 50%;
}
.entry-content img { border-radius: 8px; margin: 20px 0; }
.entry-content a { text-decoration: underline; }

.back-to-blog { max-width: 800px; margin: 30px auto 0; }

.image-text-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 50px;
}
.image-text-block img { border-radius: 8px; }
.image-text-block.reverse .img-col { order: 2; }

.full-image {
  width: 100%;
  border-radius: 8px;
  margin: 40px 0;
}

.two-col-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 10px;
}
.two-col-text h2 { margin-top: 0; }

.three-col-text {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 30px;
}
.three-col-text h2 { margin-top: 0; color: var(--copper-dark); }

@media (max-width: 782px) {
  .two-col-text { grid-template-columns: 1fr; gap: 25px; }
  .three-col-text { grid-template-columns: 1fr; gap: 25px; }
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gallery-strip img { border-radius: 6px; aspect-ratio: 1/1; object-fit: cover; }

/* Contatos */
.contacts-section h2 { margin-bottom: 30px; }
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-block { margin-bottom: 22px; }
.contact-block h6 {
  color: var(--copper);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin: 0 0 6px;
}
.contact-block p { margin: 0; }
.contact-social { display: inline-block; margin-top: 5px; }
.contact-social img { width: 32px; height: 32px; border-radius: 50%; }
.contacts-map { height: 380px; border-radius: 8px; overflow: hidden; }
.contacts-map iframe { width: 100%; height: 100%; display: block; }

.site-footer {
  background: var(--dark);
  color: #999;
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #333;
  font-size: 0.85rem;
}
.site-footer a { color: #999; }

@media (max-width: 782px) {
  .contacts-grid { grid-template-columns: 1fr; }
  .contacts-map { height: 300px; }
}

@media (max-width: 782px) {
  .hero .container,
  .image-text-block,
  .image-text-block.reverse { grid-template-columns: 1fr; }
  .image-text-block.reverse .img-col { order: 0; }
  .main-nav ul { gap: 12px; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
}
