/* ========================================
   CAMACHINHO — Pure CSS Stylesheet
   ======================================== */

/* ---------- CSS Variables (Design Tokens) ---------- */
:root {
  --background: hsl(209, 40%, 96%);
  --foreground: hsl(222, 47%, 11%);
  --card: hsl(210, 40%, 98%);
  --card-foreground: hsl(222, 47%, 11%);
  --primary: hsl(200, 98%, 39%);
  --primary-foreground: hsl(204, 100%, 97%);
  --secondary: hsl(215, 24%, 26%);
  --secondary-foreground: hsl(210, 40%, 98%);
  --muted-foreground: hsl(222, 47%, 11%);
  --border: hsl(212, 26%, 83%);
  --whatsapp: hsl(142, 70%, 40%);
  --whatsapp-hover: hsl(142, 70%, 35%);
  --radius: 0.5rem;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---------- Container ---------- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 3rem;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s, box-shadow 0.2s, opacity 0.2s;
  text-decoration: none;
  line-height: 1;
}

.btn svg {
  flex-shrink: 0;
}

.btn-sm {
  height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
}

.btn-lg {
  height: 2.75rem;
  padding: 0 2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

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

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background-color: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background-color: hsl(210, 40%, 98%);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: var(--primary-foreground);
  box-shadow: 0 2px 8px hsl(142 70% 40% / 0.3);
}

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

.btn-hero {
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 1rem;
  height: 2.75rem;
  padding: 0 2rem;
  box-shadow: 0 4px 14px hsl(200 98% 39% / 0.35);
  width: 100%;
}

.btn-hero:hover {
  opacity: 0.85;
}

.btn-hero-outline {
  border: 2px solid hsla(204, 100%, 97%, 0.3);
  background-color: hsla(204, 100%, 97%, 0.1);
  color: var(--secondary-foreground);
  font-weight: 600;
  font-size: 1rem;
  height: 2.75rem;
  padding: 0 2rem;
  width: 100%;
}

.btn-hero-outline:hover {
  background-color: hsla(204, 100%, 97%, 0.2);
}

@media (min-width: 640px) {
  .btn-hero,
  .btn-hero-outline {
    width: auto;
  }
}

/* ---------- Section Eyebrow & Title ---------- */
.section-eyebrow {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-eyebrow--light {
  color: var(--primary);
}

.section-title {
  text-align: center;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 3rem;
}

.section-title--light {
  color: var(--secondary-foreground);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--secondary);
  opacity: 0.85;
}

.navbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

@media (min-width: 768px) {
  .navbar {
    padding: 1rem 3rem;
  }
}

.navbar-logo {
  height: 2.5rem;
  filter: brightness(0) invert(1);
}

@media (min-width: 768px) {
  .navbar-logo {
    height: 3.5rem;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.hero-content .container { width: 100%; }

.hero-eyebrow {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
}

.hero-title {
  max-width: 48rem;
  margin-bottom: 1.5rem;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--secondary-foreground);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-subtitle {
  max-width: 40rem;
  margin-bottom: 2.5rem;
  font-size: 1.125rem;
  color: hsla(210, 40%, 98%, 0.8);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

.hide-mobile {
  display: none;
}

@media (min-width: 640px) {
  .hide-mobile {
    display: inline;
  }
}

/* ---------- TRUST BAR ---------- */
.trust-bar {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.trust-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary);
}

.trust-item span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--card-foreground);
}

/* ---------- EQUIPMENT ---------- */
.equipment-section {
  background-color: var(--background);
  padding: 4rem 0 4rem;
}

@media (min-width: 768px) {
  .equipment-section {
    padding: 6rem 0;
  }
}

.equipment-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.equip-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--card);
  overflow: hidden;
  box-shadow: 0 1px 3px hsl(0 0% 0% / 0.06);
  transition: box-shadow 0.3s;
}

.equip-card:hover {
  box-shadow: 0 4px 12px hsl(0 0% 0% / 0.1);
}

.equip-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.equip-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.equip-card:hover .equip-img-wrap img {
  transform: scale(1.05);
}

.equip-body {
  padding: 1.25rem;
}

.equip-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--card-foreground);
}

.equip-subtitle {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.equip-text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.equip-body .btn {
  margin-top: 1rem;
}

/* ---------- SERVICES ---------- */
.services-section {
  background-color: var(--secondary);
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .services-section {
    padding: 6rem 0;
  }
}

.services-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  border: 1px solid hsla(210, 40%, 98%, 0.1);
  border-radius: var(--radius);
  background-color: hsla(210, 40%, 98%, 0.05);
  padding: 2rem;
  text-align: center;
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: hsla(200, 98%, 39%, 0.2);
  color: var(--primary);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary-foreground);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: hsla(210, 40%, 98%, 0.7);
}

.services-cta {
  margin-top: 3rem;
  text-align: center;
}

/* ---------- CONTACT FORM ---------- */
.contact-section {
  background-color: var(--background);
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .contact-section {
    padding: 6rem 0;
  }
}

.contact-wrapper {
  max-width: 40rem;
  margin: 0 auto;
}

.contact-desc {
  text-align: center;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.contact-form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--card);
  padding: 1.5rem;
  box-shadow: 0 1px 3px hsl(0 0% 0% / 0.06);
}

@media (min-width: 768px) {
  .contact-form {
    padding: 2rem;
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group--full {
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--background);
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  color: var(--foreground);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(200, 98%, 39%, 0.15);
}

.form-group textarea {
  height: auto;
  padding: 0.5rem 0.75rem;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.contact-alt {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-alt a {
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
}

/* ---------- INSTITUTIONAL ---------- */
.institutional-section {
  background-color: var(--card);
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .institutional-section {
    padding: 6rem 0;
  }
}

.institutional-wrapper {
  max-width: 56rem;
  margin: 0 auto;
}

.institutional-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 12px hsl(0 0% 0% / 0.1);
  margin-bottom: 2.5rem;
}

.institutional-img img {
  width: 100%;
  object-fit: cover;
}

.institutional-content {
  text-align: center;
}

.institutional-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.institutional-quote {
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  color: var(--primary);
  border: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 768px) {
  .institutional-quote {
    font-size: 1.875rem;
  }
}

/* ---------- FOOTER ---------- */
.footer {
  background-color: var(--secondary);
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .footer {
    padding: 4rem 0;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

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

.footer-logo {
  height: 2.5rem;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: hsla(210, 40%, 98%, 0.7);
}

.footer-contact h4,
.footer-address h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary-foreground);
  margin-bottom: 1rem;
}

.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsla(210, 40%, 98%, 0.8);
}

.footer-contact li svg {
  color: var(--primary);
  flex-shrink: 0;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.address-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsla(210, 40%, 98%, 0.8);
}

.address-row svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsla(210, 40%, 98%, 0.1);
  text-align: center;
  font-size: 0.75rem;
  color: hsla(210, 40%, 98%, 0.5);
}

/* ---------- Toast Notification ---------- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 20px hsl(0 0% 0% / 0.2);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 9999;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}
