/* ============================================
   Metal Telas Imperial — Stylesheet
   ============================================ */

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

:root {
  --dark:    #022E40;
  --steel:   #01402E;
  --accent:  #37A667;
  --accent2: #2CBF60;
  --light:   #f5f5f5;
  --white:   #ffffff;
  --text:    #1f2937;
  --muted:   #6b7280;
  --subtle:  #e5e7eb;
  --nav-text: #d1d5db;
  --whatsapp: #25d366;
  --whatsapp-hover: #1ebe5d;
  --star: #f1c40f;
  --radius:  6px;
  --shadow:  0 4px 16px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- THEME UTILITIES ---- */
.text-accent { color: var(--accent); }
.text-accent-2 { color: var(--accent2); }
.text-dark { color: var(--dark); }
.text-muted { color: var(--muted); }
.bg-accent { background: var(--accent); }
.bg-steel { background: var(--steel); }
.border-accent { border-color: var(--accent); }
.is-active { background: var(--accent); color: var(--white); }

/* ---- CONTAINER ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---- HEADER / NAV ---- */
header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

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

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--nav-text);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* dropdown */
.dropdown { position: relative; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: var(--dark);
  border-top: 3px solid var(--accent);
  min-width: 220px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 0;
  z-index: 101;
}

/* ponte invisível cobrindo o vão entre "Serviços" e o submenu
   (elimina a "área morta" que fechava o menu antes do clique) */
.dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: .875rem;
  color: var(--nav-text);
  transition: background .2s, color .2s;
}

.dropdown-menu a:hover { background: rgba(255,255,255,.06); color: var(--accent); }

/* hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; pointer-events: none; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: all .2s;
  border: none;
}

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

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

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

.btn-outline:hover { background: var(--white); color: var(--dark); }

.btn-outline-dark {
  border-color: var(--text);
  color: var(--text);
}

.btn-outline-dark:hover {
  background: var(--text);
  color: var(--white);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--steel) 100%);
  color: var(--white);
  padding: 96px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  position: relative;
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.8);
  max-width: 640px;
  margin: 0 auto 36px;
  position: relative;
}

.hero-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; position: relative; }

/* ---- PAGE HEADER (inner pages) ---- */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--steel) 100%);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}

.page-header h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ---- SECTION BASE ---- */
section { padding: 72px 0; }
section.bg-light { background: var(--light); }
section.bg-dark { background: var(--dark); color: var(--white); }
section.bg-steel { background: var(--steel); color: var(--white); }

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

.section-title h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-title.light h2 { color: var(--white); }

.section-title p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
}

.section-title.light p { color: rgba(255,255,255,.7); }

.section-title h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }

.card-icon {
  background: var(--accent);
  color: var(--white);
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 24px auto 0;
}

.card-body { padding: 20px 24px 28px; text-align: center; }

.card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.card-body p { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }

/* ---- SERVICES GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: transform .2s;
}

.service-card:hover { transform: translateY(-3px); }

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.service-card p { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }

/* ---- BENEFITS LIST ---- */
.benefits-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}

.benefit-icon {
  color: var(--accent);
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-item h4 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.benefit-item p { font-size: .85rem; color: var(--muted); }

/* ---- STATS ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat { padding: 24px; }
.stat-number { font-size: 2.4rem; font-weight: 900; color: var(--accent); line-height: 1; }
.stat-label { font-size: .875rem; color: rgba(255,255,255,.7); margin-top: 8px; }

/* ---- TESTIMONIALS ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial::before {
  content: '"';
  font-size: 5rem;
  color: var(--accent);
  opacity: .2;
  position: absolute;
  top: 8px; left: 16px;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial p { font-size: .95rem; color: var(--text); margin-bottom: 20px; font-style: italic; }

.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.author-info h4 { font-size: .9rem; font-weight: 700; }
.author-info span { font-size: .8rem; color: var(--muted); }
.stars { color: var(--star); font-size: .9rem; margin-bottom: 2px; }

/* ---- CTA BAND ---- */
.cta-band {
  background: var(--accent);
  color: var(--white);
  text-align: center;
  padding: 64px 24px;
}

.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 12px; }
.cta-band p { font-size: 1.05rem; margin-bottom: 32px; opacity: .9; }

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-list { display: flex; flex-direction: column; gap: 20px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-icon {
  width: 44px; height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item h4 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
.contact-item p { font-size: .95rem; color: var(--text); }

/* ---- FORM ---- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; color: var(--dark); }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #ddd;
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s;
  background: var(--white);
}

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

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

/* ---- GALLERY ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 4/3;
  background: var(--light);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  color: var(--white);
  padding: 16px 14px 12px;
  font-size: .875rem;
  font-weight: 600;
}

.gallery-placeholder {
  aspect-ratio: 4/3;
  background: var(--subtle);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .875rem;
  gap: 8px;
  overflow: hidden;
  position: relative;
  transition: transform .25s;
}

.gallery-placeholder:hover { transform: scale(1.02); }
.gallery-placeholder .icon { font-size: 2rem; }

.gallery-placeholder .label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  color: var(--white);
  padding: 20px 14px 12px;
  font-size: .875rem;
  font-weight: 600;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.filter-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-button {
  background: var(--light);
  color: var(--text);
}

.filter-button.is-active {
  background: var(--accent);
  color: var(--white);
}

.gallery-note {
  text-align: center;
  color: var(--muted);
  font-size: .875rem;
  margin-top: 32px;
}

/* ---- FAQ ---- */
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}

.faq-item h4 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.faq-item p { color: var(--muted); font-size: .9rem; }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  background: var(--light);
  padding: 12px 0;
  font-size: .825rem;
  color: var(--muted);
}

.breadcrumb a { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }

/* ---- FOOTER ---- */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .logo { font-size: 1.2rem; margin-bottom: 14px; display: block; }
.footer-brand p { font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.55); }

.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .875rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px; height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  z-index: 999;
  transition: transform .2s;
}

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

/* ---- TWO COL ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.two-col img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 340px;
  object-fit: cover;
  background: var(--light);
}

.two-col h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.two-col h2 span { color: var(--accent); }
.two-col p { color: var(--muted); margin-bottom: 14px; }

/* ---- REUSABLE LOCAL PATTERNS ---- */
.section-compact { padding: 32px 0 0; }
.cta-spaced { margin-top: 72px; }
.center-action { text-align: center; margin-top: 36px; }
.contact-full-button { width: 100%; justify-content: center; }
.no-section-padding { padding: 0; }

.placeholder-box {
  background: var(--subtle);
  border-radius: var(--radius);
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .9rem;
}

.map-placeholder {
  width: 100%;
  height: 400px;
  background: var(--subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-options {
  margin: 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.option-card {
  background: var(--light);
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  border-top: 4px solid var(--accent);
}

.option-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
}

.option-note {
  font-size: .875rem;
  color: var(--muted);
  margin-top: 4px;
}

.inline-list {
  margin: 16px 0 24px;
  display: grid;
  gap: 8px;
}

.inline-list li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.checkmark {
  color: var(--accent);
  font-weight: 700;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .two-col, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .two-col.reverse { direction: ltr; }
  footer .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--dark); padding: 20px 24px 28px; gap: 16px; z-index: 200; box-shadow: 0 10px 20px rgba(0,0,0,.35); max-height: calc(100vh - 64px); overflow-y: auto; }
  .nav-links.open .dropdown-menu { display: block; position: static; min-width: auto; border-top: none; box-shadow: none; background: transparent; padding: 4px 0 0 12px; }
  .nav-links.open .dropdown-menu a { padding: 8px 0; }
  .nav-links.open .dropdown-menu::before { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 64px 0 56px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .feature-options { grid-template-columns: 1fr; }
  footer .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
