:root {
  --primary: #4a9b8e;
  --primary-light: #5db3a5;
  --primary-dark: #3a7d72;
  --bg-dark: #050b14;
  --bg-darker: #07101a;
  --bg-darkest: #0b1222;
  --bg-card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --text-muted: #cfd8e3;
  --text-secondary: #dce6f2;
  --radius: 18px;
  --transition: 0.35s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(74,155,142,0.25), transparent),
              radial-gradient(800px 500px at 90% 10%, rgba(93,179,165,0.2), transparent),
              linear-gradient(180deg, #07101a, var(--bg-dark));
  color: var(--text);
  min-height: 100vh;
  overflow: hidden;
}

/* ========== HEADER MOBILE ========== */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 18, 34, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
}

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

.logo-mobile {
  height: 45px;
  width: auto;
}

.menu-toggle {
  background: none;
  border: none;
  width: 18%;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: var(--bg-darkest);
  overflow-y: auto;
  transition: right 0.4s ease;
  z-index: 999;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
  right: 0;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.menu-logo {
  height: 40px;
}

.menu-close {
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  transition: color 0.3s ease;
}

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

.menu-list {
  list-style: none;
  padding: 20px 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.menu-item:hover,
.menu-item.active {
  background: rgba(74, 155, 142, 0.1);
  color: var(--primary);
}

.menu-icon {
  font-size: 1.3rem;
}

.menu-contact {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border);
}

.contact-btn-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(74, 155, 142, 0.1);
  border: 1px solid var(--primary);
  border-radius: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-btn-menu:hover {
  background: var(--primary);
  color: var(--bg-darkest);
}

.contact-btn-menu.whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
}

/* ========== HEADER DESKTOP ========== */
.desktop-header {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 11, 20, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 48px;
  transition: transform var(--transition);
}

.logo img:hover {
  transform: scale(1.06);
}

.desktop-header nav {
  display: flex;
  gap: 36px;
  align-items: center;
}

.dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.desktop-header nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  padding: 8px 0;
}

.desktop-header nav a.menu-link {
  cursor: pointer;
}

.desktop-header nav a:hover,
.desktop-header nav a.active {
  color: var(--primary);
}

/* ========== SUBMENU SERVIÇOS ========== */
.desktop-header .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 41, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 0;
  min-width: 220px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
}

.desktop-header .sub-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(15, 23, 41, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.desktop-header .sub-menu.show {
  opacity: 1;
  visibility: visible;
}

.desktop-header .sub-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.desktop-header .sub-menu a:hover {
  background: rgba(74, 155, 142, 0.1);
  color: var(--primary);
  padding-left: 24px;
}

.desktop-header .sub-menu a::after {
  display: none;
}

/* ========== MAIN CONTENT ========== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 88px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  max-width: 1000px;
  width: 100%;
}

/* ========== CONTACT INFO ========== */
.contact-info {
  background: linear-gradient(160deg, rgba(74, 155, 142, 0.12) 0%, rgba(20, 30, 48, 0.8) 100%);
  border: 1px solid rgba(74, 155, 142, 0.25);
  border-radius: 20px;
  padding: 36px 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
  opacity: 0.8;
}

.contact-info h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
  letter-spacing: -0.5px;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

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

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.info-item:hover {
  background: rgba(74, 155, 142, 0.18);
  border-color: rgba(74, 155, 142, 0.3);
  transform: translateX(6px);
}

.info-item i {
  font-size: 1.2rem;
  color: var(--primary);
  width: 24px;
  text-align: center;
}

.info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-label {
  font-size: 0.68rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.info-text span,
.info-text a {
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.quick-actions-mobile {
  display: none;
}

/* ========== CONTACT FORM ========== */
.contact-form {
  background: linear-gradient(160deg, rgba(255,255,255,0.06) 0%, rgba(20, 30, 48, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 36px 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.contact-form h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.field {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0,0,0,0.35);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
  font-size: 0.85rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0,0,0,0.45);
  box-shadow: 0 0 0 3px rgba(74, 155, 142, 0.15);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23cfd8e3' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 35px;
}

select option {
  background: var(--bg-darkest);
  color: var(--text);
}

textarea {
  min-height: 60px;
  resize: none;
}

button {
  width: 100%;
  padding: 15px;
  margin-top: 8px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(74, 155, 142, 0.35);
}

button:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(74, 155, 142, 0.45);
}

button:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
}

button:active {
  transform: translateY(0);
}

button i {
  font-size: 1.1rem;
}

/* ========== FOOTER MOBILE ========== */
.mobile-footer {
  display: none;
  background: linear-gradient(180deg, var(--bg-darkest) 0%, #030508 100%);
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.footer-content-mobile {
  padding: 40px 20px;
  text-align: center;
}

.footer-brand {
  margin-bottom: 30px;
}

.footer-logo {
  height: 50px;
  margin-bottom: 16px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 8px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links-mobile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.footer-links-mobile a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 4px 0;
}

/* ========== FOOTER DESKTOP ========== */
.desktop-footer {
  display: block;
  background: linear-gradient(180deg, var(--bg-darkest) 0%, #030508 100%);
  border-top: 1px solid var(--border);
  margin-top: 80px;
}

.footer-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 32px 30px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
}

.desktop-footer .footer-brand h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--text);
}

.desktop-footer .footer-brand span {
  color: var(--primary);
}

.desktop-footer .footer-brand p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-links h4 {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
  font-size: 0.95rem;
}

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

.desktop-footer .footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding: 30px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info {
    position: static;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  /* Mostrar header mobile, esconder desktop */
  .mobile-header {
    display: block;
  }

  .desktop-header {
    display: none;
  }

  /* Mostrar footer mobile, esconder desktop */
  .mobile-footer {
    display: block;
  }

  .desktop-footer {
    display: none;
  }

  /* Ajustes do main */
  main {
    padding: 100px 20px 60px;
  }

  .contact-grid {
    gap: 30px;
  }

  .contact-info {
    padding: 32px 24px;
  }

  .contact-info h1 {
    font-size: 2rem;
  }

  .contact-info p {
    font-size: 0.95rem;
  }

  .info-item {
    padding: 12px;
  }

  .info-item i {
    font-size: 1.2rem;
  }

  .info-text span,
  .info-text a {
    font-size: 0.9rem;
  }

  /* Mostrar botões de ação rápida mobile */
  .quick-actions-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
  }

  .quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: rgba(74, 155, 142, 0.1);
    border: 1px solid var(--primary);
    border-radius: 12px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
  }

  .quick-btn:hover {
    background: var(--primary);
    color: var(--bg-darkest);
  }

  .quick-btn.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
  }

  .quick-btn i {
    font-size: 1.5rem;
  }

  /* Form mobile */
  .contact-form {
    padding: 32px 24px;
  }

  .contact-form h2 {
    font-size: 1.8rem;
    margin-bottom: 28px;
  }

  .field {
    margin-bottom: 20px;
  }

  input,
  textarea,
  select {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  button {
    padding: 16px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .logo-mobile {
    height: 38px;
  }

  main {
    padding: 90px 16px 40px;
  }

  .contact-info h1 {
    font-size: 1.75rem;
  }

  .contact-form h2 {
    font-size: 1.6rem;
  }

  .info-list {
    gap: 16px;
  }

  .quick-actions-mobile {
    grid-template-columns: 1fr;
  }

  .quick-btn {
    flex-direction: row;
    justify-content: center;
  }
}