:root {
  --primary-color: #168e72;
  --primary-hover: #127a60;
  --button-color: #0d6b56;
  --button-hover: #0a5745;
  --secondary-color: #63efcd;
  --dark-bg: #1a1a1a;
  --light-bg: #f5f5f7;
}

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

/* Utility classes to replace Tailwind */
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.w-full { width: 100%; }
.relative { position: relative; }
.flex { display: flex; }
.hidden { display: none; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mr-2 { margin-right: 0.5rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.gap-3 { gap: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gap-2\.5 { gap: 0.625rem; }
.gap-4 { gap: 1rem; }
.flex-grow { flex-grow: 1; }
.mt-2 { margin-top: 0.5rem; }
.text-sm { font-size: 0.875rem; }
.mb-0 { margin-bottom: 0; }

.hover\:text-primary:hover { color: var(--primary-color) !important; }
.transition-colors { transition-property: color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.underline { text-decoration: underline; }

/* Responsive utilities */
@media (min-width: 640px) {
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:hidden { display: none; }
  .md\:flex { display: flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1d1d1f;
  line-height: 1.6;
  background: #fff;
}

/* Navbar moderna */
.navbar {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.72) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.1rem;
  color: #1d1d1f !important;
  letter-spacing: -0.02em;
}

.navbar-brand img {
  max-height: 45px;
}

.nav-link {
  color: #1d1d1f !important;
  font-size: 0.95rem;
  font-weight: 400;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 80%;
}

/* Remove list bullets */
.navbar-collapse ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Mobile menu */
.navbar-toggler {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .navbar-toggler {
    display: none !important;
  }
}

.navbar-toggler:hover {
  transform: scale(1.1);
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-collapse {
  transition: max-height 0.3s ease-in-out;
}

.navbar-collapse.show {
  display: block !important;
}

@media (max-width: 768px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .navbar-collapse ul {
    flex-direction: column;
    padding: 1rem 0;
  }

  .navbar-collapse li {
    width: 100%;
    text-align: center;
  }

  .nav-link {
    display: block;
    padding: 0.75rem 1rem;
  }
}

/* Hero Carousel */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-item {
  display: none;
  position: relative;
  width: 100%;
  transition: transform 0.6s ease-in-out;
}

.carousel-item.active {
  display: block;
}

.carousel-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  filter: brightness(0.9);
}

.carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;

}

.carousel-indicators button.active {
  background-color: var(--primary-color);
}

/* Títulos modernos */
h1 {
  font-size: 3.5rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em;
  margin: 3rem 0 1rem;
  color: #1d1d1f;
  text-align: center;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.intro-text {
  font-size: 1.5rem;
  font-weight: 300;
  color: #6e6e73;
  margin-bottom: 4rem;
  text-align: center;
}

/* Seções modernas */
section {
  padding: 3rem 2rem;
  border-radius: 18px;
  margin-bottom: 2rem;
  background: var(--light-bg);
  border: none;
}

#contactos p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #1d1d1f;
}

/* Cards de serviços modernos */
.service-card {
  background: white;
  border-radius: 14px;
  padding: 0.75rem 0.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 1 / 1;
  width: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(22, 142, 114, 0.15);
  border-color: var(--primary-color);
}

.service-card .icon {
  margin-bottom: 0.4rem;
  fill: currentColor;
}

.service-card span {
  font-size: 0.75rem;
  font-weight: 500;
  color: #1d1d1f;
  line-height: 1.2;
}

@media (max-width: 640px) {
  .service-card {
    padding: 0.6rem 0.4rem;
  }
  
  .service-card .icon {
    width: 24px;
    height: 24px;
    margin-bottom: 0.35rem;
  }
  
  .service-card span {
    font-size: 0.7rem;
  }
  
  #servicos > div {
    justify-items: center;
  }
  
  #servicos > div > *:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.3125rem);
  }
}

/* Formulário moderno */
.form-control {
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  transition: all 0.3s ease;
  background: white;
  margin-bottom: 0.5rem;
  width: 100%;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(22, 142, 114, 0.1);
  outline: none;
}

.form-label {
  margin-bottom: 0;
}

#formulario form {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 300px;
}

#formulario textarea {
  flex-grow: 1;
  resize: none;
  min-height: 100px;
}

.btn {
  border-radius: 12px;
  padding: 0.85rem 2.5rem;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  background: var(--button-color);
  color: white;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
  cursor: pointer;
  min-height: 44px;
}

.btn:hover {
  background: var(--button-hover);
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(13, 107, 86, 0.3);
}

/* Footer moderno */
footer {
  background: #0a5745 !important;
  padding: 2rem 0;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  text-align: center;
}

/* Iframe maps */
iframe {
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  width: 100%;
  height: 100%;
  min-height: 300px;
}

/* Cores de texto */
.text-primary { color: var(--primary-color) !important; }
.text-danger { color: #dc3545; }
.text-warning { color: #ffc107; }
.text-info { color: #0dcaf0; }
.text-secondary { color: #6c757d; }
.text-muted { color: #6e6e73; }

@media (max-width: 768px) {
  h1 { font-size: 1.75rem !important; }
  h2 { font-size: 2rem; }
  .intro-text { font-size: 1.1rem !important; }
  
  .navbar {
    padding: 0.5rem 0;
  }
}
