/*
 *  __  __       _   _                      __  __             _                 
 * |  \/  | __ _| |_| |__   ___ _   _ ___  |  \/  |_   _ _ __ | |__   ___ ____  
 * | |\/| |/ _` | __| '_ \ / _ \ | | / __| | |\/| | | | | '_ \| '_ \ / _ \_  /  
 * | |  | | (_| | |_| | | |  __/ |_| \__ \ | |  | | |_| | | | | | | | (_) / /   
 * |_|  |_|\__,_|\__|_| |_|\___|\__,_|___/ |_|  |_|\__,_|_| |_|_| |_|\___/___|  
 *
 *  Desenvolvido por MATHEUS MUNHOZ
 *  © 2025 - Master Climatização
 */
 
:root{
  --bg:#080808;
  --panel:#0f1112;
  --text:#e6e6e6;
  --muted:#9aa0a6;
  --gold:#f7ce4c;
  --gold-text:#f7ce4c;
  --accent:rgba(247,206,76,0.12);
  
  --max-width:1150px;
  --radius:10px;
  --glass: rgba(255,255,255,0.03);
  --hero-bottom-padding: 8vh;
  --map-size: 420px;
  --contact-aspect: 2/3;
  --thumb-gap: 0.6rem;
  --section-lead-gap: 0.4rem;
}

*{box-sizing:border-box}

html, body {
  height:100%;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE10+/Edge */
  user-select: none;         /* Standard */
}

body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  line-height:1.5;
  overflow-x: hidden;
}

img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

main {
  position: relative;
  background-color: var(--bg);
  z-index: 10;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 1.2rem 0; 
}


.site-header.scrolled {
  background: rgba(8, 8, 8, 0.9); 
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.8rem 0; 
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center; 
  gap: 2rem;
  padding: 0 1rem;
  position: relative;
}

.nav-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 101;
}

.main-nav { display: flex; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2.5rem; 
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--text); 
  padding: 0.5rem 0;
  background: transparent;
  font-weight: 600;
  font-size: 0.8rem; 
  text-transform: uppercase;
  letter-spacing: 0.15em; 
  position: relative;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--gold);
  transition: width 0.3s ease, left 0.3s ease;
  box-shadow: 0 0 8px rgba(247, 206, 76, 0.6);
}

.main-nav a:hover, .main-nav a.active { color: var(--gold-text); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; left: 0; }

.masterclimatizacao{position:relative; min-height:100vh; display:flex; align-items:center; color:var(--text); overflow:hidden;}
.masterclimatizacao-bg{position:fixed;top:0;left:0;right:0;height:100vh;background-size:cover;background-position:center;z-index:-1;filter:brightness(0.32) saturate(0.9);will-change:transform;background-attachment:fixed}
.masterclimatizacao-inner{position:relative;z-index:2;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:6rem 1rem 4rem;}
.masterclimatizacao-text{max-width:900px;text-align:center; width: 100%;}

.hero-logo{
  display:block;
  margin:0 auto 1rem;
  width: min(420px, 80%);
  max-width: 420px;
  height: auto;
}

.masterclimatizacao-actions{display:flex;gap:0.8rem;justify-content:center; flex-wrap: wrap;}

.btn{display:inline-block;text-decoration:none;padding:0.6rem 1.2rem;border-radius:8px;border:1px solid transparent;cursor:pointer;font-weight:600;transition: all .2s ease; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.05em; text-align: center;}
.btn.primary{background:linear-gradient(90deg,var(--gold),#e1bc45);color:#0b0b0b;box-shadow:0 6px 18px rgba(247,206,76,0.12)}
.btn.primary:hover{ transform:translateY(-2px); filter:brightness(0.98); }
.btn.ghost{background:transparent;border:1px solid rgba(255,255,255,0.15);color:var(--text)}
.btn.ghost:hover{ background: rgba(255,255,255,0.05); color:var(--gold-text); border-color: var(--gold); transform: translateY(-2px); }

.section{ padding: 4rem 0; background-color: var(--bg); position: relative; }

.section-title-pro {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: var(--gold-text);
  font-size: 2.2rem;
  text-align: center;
  margin: 1.5rem auto 2.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  width: 100%;
  text-shadow: 0 2px 10px rgba(247, 206, 76, 0.15);
}
.section-title-pro::after { content: ""; display: block; width: 80px; height: 3px; background: var(--gold); margin: 0.8rem auto 0; border-radius: 2px; box-shadow: 0 0 10px rgba(247, 206, 76, 0.4); }

.section-subtitle-pro {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--muted);
  font-size: 1.2rem;
  text-align: center;
  margin: 1rem auto 1rem; 
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.5rem;
  display: table;
}

.tech-lead {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  max-width: 850px;
  margin: 0 auto 2rem;
  line-height: 1.5; 
}

.portfolio-hero { text-align: center; margin-bottom: 1rem; display: block; }
.portfolio-hero .lead, .contact-lead, .services-hero .lead{ margin-top: var(--section-lead-gap); margin-bottom: 1rem; }

.models-container { max-width: 1000px; margin: 0 auto 3rem; }
.models-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.model-card {
  position: relative;
  width: 100%;
  height: 220px; 
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}
.model-card:hover { transform: translateY(-6px); border-color: var(--gold); }

.model-img-wrap { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.model-img-wrap img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0,0,0,0.6)); transition: transform 0.4s ease; }
.model-card:hover .model-img-wrap img { transform: scale(1.1); }

.model-caption { width: 100%; flex-shrink: 0; padding: 0.5rem 0.5rem 1.2rem; text-align: center; color: var(--muted); font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.3s ease; }
.model-card:hover .model-caption { color: var(--gold); }

.services-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 1rem; align-items: stretch; }

.pricing-card {
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a); 
  border: 1px solid rgba(255,255,255,0.05); 
  border-radius: 12px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
  height: 100%; 
}
.pricing-card:hover { transform: translateY(-8px); border-color: var(--gold); }

.pricing-thumb { margin-bottom: 1.5rem; width: 100%; height: 160px; display: flex; align-items: center; justify-content: center; }
.pricing-thumb img { 
  max-width: 100%; 
  max-height: 100%; 
  object-fit: contain; 
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
  border-radius: 8px; /* Adicionado para arredondar as bordas */
}

.pricing-title { font-family: 'Inter', sans-serif; font-weight: 700; color: var(--gold-text); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 1.5rem; text-align: center; min-height: 3rem; display: flex; align-items: center; justify-content: center; }

.pricing-features { list-style: none; padding: 0; margin: 0; width: 100%; text-align: left; }
.pricing-features li { padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.03); color: var(--muted); text-transform: uppercase; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; display: flex; align-items: flex-start; gap: 0.8rem; line-height: 1.4; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li i { color: var(--gold); margin-top: 0.1rem; font-size: 0.85rem; flex-shrink: 0; }

.services-bottom-lead { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 2.5rem; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; text-align: center; width: 100%; flex-wrap: wrap; }
.services-bottom-lead::before, .services-bottom-lead::after { content: ""; height: 1px; background: var(--gold); width: 60px; opacity: 0.5; display: block; }
.masterclimatizacao-text .services-bottom-lead { margin-top: 1.5rem; margin-bottom: 2rem; color: var(--text); font-size: 0.8rem; }

.contact-grid-two{ display:block; }
.contact-card{ background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); padding: 2rem; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); display:flex; flex-direction:column; }
.contact-card-title{ color:var(--gold-text); text-align:center; margin:0 0 1.5rem; font-family:'Inter', sans-serif; font-weight: 700; font-size: 1.2rem; letter-spacing: 0.05em; }

.contact-combined .contact-split{ display:grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.contact-form{display:flex;flex-direction:column;gap:0.8rem}
.contact-form label { font-size: 0.8rem; font-weight: 600; color: var(--muted); letter-spacing: 0.05em; }
.contact-form input, .contact-form textarea{ width:100%; padding:0.75rem; border: 1px solid rgba(255,255,255,0.08); border-radius:8px; background: rgba(0,0,0,0.3); color:var(--text); font-family: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); background: rgba(0,0,0,0.5); }

.contact-map-area{ position:relative; width: min(var(--map-size), 100%); max-width: var(--map-size); aspect-ratio: 1 / 1; justify-self: center; border-radius:50%; overflow:hidden; border: 5px solid var(--gold); background: #ffffff; }
.map-image{ width:100%; height:100%; object-fit:cover; }
.contact-map-area::after{ content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 24px; height: 24px; background-image: url('../assets/map/mapbadge.png'); background-repeat: no-repeat; background-size: contain; pointer-events: none; }

.contact-methods-inline{ display:flex; gap:1rem; justify-content:center; align-items:center; margin-top:2rem; flex-wrap:wrap; width:100%; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1.5rem; }
.contact-method{ display:inline-flex; gap:0.6rem; align-items:center; text-decoration:none; color:var(--muted); padding:0.6rem 1rem; border-radius:8px; transition: all .2s ease; text-transform:uppercase; font-size: 0.85rem; border: 1px solid transparent; }
.contact-method i{ color:var(--gold); font-size:1.1rem; }
.contact-method:hover{ background:rgba(255,255,255,0.03); color:var(--gold-text); border-color: rgba(255,255,255,0.05); }

.site-footer{ 
  position: relative; 
  z-index: 20; 
  background-color: var(--bg); 
  border-top: none; 
  padding: 1.5rem 0; 
  color:var(--muted); 
  text-align: center; 
}

.footer-inner{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap; 
  flex-direction: row;
}

.footer-inner p{
  margin:0;
  font-size: 0.75rem;
  text-transform: uppercase; 
  text-align: center; 
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.footer-inner .brand, .footer-inner .dev-name{color:var(--gold-text);font-weight:700}

.portfolio-grid-section { padding-bottom: 4rem; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.portfolio-item {
  position: relative;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 15px 30px rgba(0,0,0,0.5); }

.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.portfolio-item:hover img { transform: scale(1.1); }

.portfolio-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0; 
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-title {
  color: var(--gold-text);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.portfolio-desc { color: var(--muted); font-size: 0.8rem; transform: translateY(10px); transition: transform 0.3s ease 0.1s; }

.portfolio-item:hover .portfolio-title,
.portfolio-item:hover .portfolio-desc { transform: translateY(0); }

.lightbox {
  position: fixed;
  z-index: 2000;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 2rem;
}

.lightbox.active { opacity: 1; pointer-events: auto; }

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.1);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s;
}
.lightbox-close:hover { color: var(--gold); }

@media (max-width: 1024px) {
  .section-title-pro { font-size: 1.8rem; }
  .services-pricing-grid { grid-template-columns: repeat(2, 1fr); } 
  .pricing-card:last-child:nth-child(odd) { grid-column: span 2; max-width: 600px; margin: 0 auto; width: 100%; }
  .models-grid { gap: 1rem; }
  .contact-combined .contact-split { gap: 1rem; }
}

@media (max-width: 900px) {
  .main-nav { display: none; } 
  .nav-toggle { display: block; } 
  .header-inner { justify-content: space-between; }

  .main-nav[aria-hidden="false"] {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    height: 100vh;
    background: rgba(8, 8, 8, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 99; 
  }
  .main-nav[aria-hidden="false"] ul { flex-direction: column; gap: 2rem; }
  .main-nav a { font-size: 1.4rem; }

  .models-grid { grid-template-columns: repeat(2, 1fr); } 
}

@media (max-width: 768px) {
  .container { padding: 1rem 1.2rem; }
  
  .services-pricing-grid { grid-template-columns: 1fr; }
  .pricing-card:last-child:nth-child(odd) { grid-column: auto; }

  .contact-combined .contact-split { grid-template-columns: 1fr; text-align: center; }
  .contact-form-area { order: 2; } 
  .contact-map-area { order: 1; width: 280px; margin: 0 auto 1.5rem; }
  .contact-form label { text-align: left; }
  
  .masterclimatizacao-text h1 { font-size: 1.6rem; }
  .masterclimatizacao-text .services-bottom-lead { font-size: 0.7rem; }

  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item { height: 240px; }
  .portfolio-overlay { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); }
  .portfolio-title, .portfolio-desc { transform: translateY(0); }
  
  .footer-inner { flex-direction: row; flex-wrap: wrap; gap: 1rem; } 
}

@media (max-width: 480px) {
  .models-grid { gap: 0.8rem; }
  .model-card { height: 180px; }
  .model-caption { font-size: 0.7rem; }
  
  .section-title-pro { font-size: 1.5rem; }
  .section-subtitle-pro { font-size: 1rem; }
  .tech-lead { font-size: 0.75rem; }
  
  .masterclimatizacao-actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; display: block; }
  .services-bottom-lead::before, .services-bottom-lead::after { width: 30px; }
  .contact-map-area { width: 240px; }
  .contact-method { width: 100%; justify-content: center; }
}