/* =============================================================================
   MASTER WEB SYSTEM - CORE STYLES
   Global styling for all pages. Do not modify without updating DO_NOT_TOUCH.md
   ============================================================================= */

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0052a3;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: #1a1a1a;
}

h1 {
  font-size: 2.5em;
}

h2 {
  font-size: 2em;
}

h3 {
  font-size: 1.5em;
}

p {
  margin-bottom: 1em;
}

/* Header Structure */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 1rem 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5em;
  font-weight: 700;
  color: #1a1a1a;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  color: #333;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #0066cc;
}

.cta-button {
  background-color: #0066cc;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #0052a3;
}

.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  z-index: 999;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

/* Sections */
section {
  padding: 4rem 1rem;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Section */
#hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 6rem 1rem;
  text-align: center;
}

#hero h1 {
  color: #fff;
  margin-bottom: 1rem;
}

#hero p {
  font-size: 1.25em;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
}

/* Trust Strip */
#trust-strip {
  background-color: #f5f5f5;
  padding: 2rem 1rem;
}

.trust-items {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.trust-item h4 {
  margin-bottom: 0.5rem;
  color: #0066cc;
  font-size: 1.5em;
}

/* Services Section */
#services {
  background-color: #fff;
}

#services h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  margin-bottom: 1rem;
  color: #0066cc;
}

.service-card p {
  color: #666;
  margin-bottom: 1.5rem;
}

.service-card a {
  display: inline-block;
  color: #0066cc;
  font-weight: 600;
  border-bottom: 2px solid #0066cc;
  padding-bottom: 0.25rem;
}

/* Why Us Section */
#why-us {
  background-color: #f5f5f5;
}

#why-us h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.why-us-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.why-us-item {
  text-align: center;
}

.why-us-item h3 {
  color: #0066cc;
  margin-bottom: 1rem;
}

/* Process Section */
#process {
  background-color: #fff;
}

#process h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.process-steps {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.process-step {
  text-align: center;
  position: relative;
  padding: 2rem;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: #0066cc;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5em;
  margin: 0 auto 1rem;
}

/* Gallery Section */
#gallery {
  background-color: #f5f5f5;
}

#gallery h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background-color: #e0e0e0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Testimonials Section */
#testimonials {
  background-color: #fff;
}

#testimonials h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid #0066cc;
}

.testimonial-text {
  font-style: italic;
  color: #666;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: #333;
}

.testimonial-role {
  font-size: 0.9em;
  color: #999;
}

/* FAQ Section */
#faq {
  background-color: #f5f5f5;
}

#faq h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.5rem;
  background-color: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.faq-question {
  background-color: #f9f9f9;
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f0f0f0;
}

.faq-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 1.5rem;
  color: #666;
  display: none;
  border-top: 1px solid #e0e0e0;
}

.faq-item.open .faq-answer {
  display: block;
}

/* CTA Band */
#cta-band, #cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
}

#cta-band h2, #cta h2 {
  color: #fff;
  margin-bottom: 1.5rem;
}

#cta-band p, #cta p {
  font-size: 1.1em;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button-white {
  background-color: #fff;
  color: #0066cc;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  transition: transform 0.3s ease;
}

.cta-button-white:hover {
  transform: scale(1.05);
}

/* Contact Section */
#contact {
  background-color: #f5f5f5;
}

#contact h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  background-color: #0066cc;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  width: 100%;
  transition: background-color 0.3s ease;
}

.form-submit:hover {
  background-color: #0052a3;
}

/* Footer Structure */
#site-footer {
  background-color: #1a1a1a;
  color: #fff;
  padding: 3rem 1rem 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-section a {
  display: block;
  color: #ccc;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  text-align: center;
  color: #999;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  display: inline;
  margin: 0 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 1.75em;
  }

  h2 {
    font-size: 1.5em;
  }

  #hero {
    padding: 4rem 1rem;
  }

  #hero h1 {
    font-size: 1.5em;
  }

  #hero p {
    font-size: 1em;
  }

  .nav {
    gap: 1rem;
    font-size: 0.9em;
  }

  .hero-cta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .whatsapp-btn {
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    font-size: 1.2em;
  }

  section {
    padding: 2.5rem 1rem;
  }

  .services-grid,
  .why-us-grid,
  .process-steps,
  .gallery-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 1.25em;
  }

  h2 {
    font-size: 1.1em;
  }

  .nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cta-button, .cta-button-white {
    padding: 0.5rem 1rem;
    font-size: 0.9em;
  }
}
