/* Resets & Variables */
:root {
  --primary: #059669;
  --primary-hover: #047857;
  --text-dark: #1F2937;
  --text-light: #4B5563;
  --bg-main: #FAFAFA;
  --bg-white: #FFFFFF;
  --border-color: #E5E7EB;
  --font-primary: 'Inter', sans-serif;
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  font-size: 1rem;
}

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

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

.btn--outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

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

/* Header */
.header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.header__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.header__menu-btn {
  display: block;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  margin: 5px 0;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.header__menu-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__menu-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.header__menu-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header__links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-white);
  padding: 24px;
  gap: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transform: translateY(-150%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  border-bottom: 1px solid var(--border-color);
}

.header__links.is-active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.header__link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

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

/* Hero Section */
.hero {
  padding: 80px 0;
  background-color: var(--bg-white);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__badge {
  background-color: #D1FAE5;
  color: var(--primary-hover);
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  display: inline-block;
}

.hero__title {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 400px;
}

.hero__image-container {
  margin-top: 56px;
  max-width: 1000px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.hero__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 480px;
}

/* Specialties Section */
.specialties {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.card {
  background-color: var(--bg-white);
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.card__icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.card__text {
  color: var(--text-light);
}

/* Process Section */
.process {
  padding: 80px 0;
  background-color: var(--bg-white);
}

.process__steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.process__step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.process__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: #D1FAE5;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.process__content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 8px;
}

.process__content p {
  color: var(--text-light);
}

/* CTA Banner */
.cta-banner {
  padding: 80px 0;
  background-color: var(--primary);
  color: var(--bg-white);
  text-align: center;
}

.cta-banner__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.cta-banner .btn--primary {
  background-color: var(--bg-white);
  color: var(--primary);
}

.cta-banner .btn--primary:hover {
  background-color: var(--bg-main);
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background-color: var(--bg-white);
}

.contact__wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-weight: 500;
  color: var(--text-dark);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--bg-main);
  color: var(--text-dark);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-input::placeholder {
  color: #9CA3AF;
}

/* Location Section */
.location {
  padding: 80px 0;
  background-color: var(--bg-main);
}

.location__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .location__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.location__info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.location__block h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.location__block p {
  color: var(--text-light);
  margin-bottom: 8px;
}

.location__block a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

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

.location__action {
  margin-top: 16px;
}

.location__map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  min-height: 300px;
}

/* Footer */
.footer {
  background-color: #111827;
  color: #FFFFFF;
  padding: 64px 0 32px;
}

.footer__socials-container {
  margin-bottom: 24px;
}

.footer__socials {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  opacity: 0.8;
  transition: var(--transition);
}

.footer__socials a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer__links-container {
  margin-bottom: 32px;
}

.footer__links {
  list-style: none;
}

.footer__links--horizontal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer__links--horizontal {
    flex-direction: row;
    justify-content: center;
    gap: 32px;
  }
}

.footer__links a,
.footer__links button {
  color: #FFFFFF !important;
  text-decoration: none !important;
  transition: var(--transition);
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 1rem !important;
  font-weight: 400 !important;
  text-align: center;
  line-height: inherit;
}

.footer__links a:hover,
.footer__links button:hover {
  opacity: 0.8;
}

.footer__bottom {
  border-top: 1px solid #374151;
  padding-top: 32px;
  text-align: center;
  font-size: 1rem;
}

.footer__bottom a {
  color: #FFFFFF !important;
  text-decoration: underline !important;
}

.footer__bottom a:hover {
  opacity: 0.8;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal--active {
  display: flex;
  opacity: 1;
}

.modal__dialog {
  background-color: var(--bg-white);
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal--active .modal__dialog {
  transform: translateY(0);
}

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

.modal__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}

.modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
}

.modal__body {
  padding: 24px;
  overflow-y: auto;
  color: var(--text-light);
}

.modal__body h4 {
  color: var(--text-dark);
  margin: 16px 0 8px;
  font-size: 1.125rem;
}

.modal__body p, .modal__body ul {
  margin-bottom: 16px;
}

.modal__body ul {
  padding-left: 20px;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (min-width: 768px) {
  .header__menu-btn {
    display: none;
  }

  .header__links {
    position: static;
    flex-direction: row;
    width: auto;
    padding: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    border-bottom: none;
    gap: 32px;
    align-items: center;
  }
  
  .hero__title {
    font-size: 3.5rem;
  }

  .hero__actions {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }

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

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

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
