/* ============================================
   ALD7Tech - Custom Stylesheet
   Modern CSS with Custom Properties
   ============================================ */

/* ============================================
   CSS Variables - Color Palette
   ============================================ */
:root {
  /* Primary Orange Tones */
  --color-orange-primary: #FF7F3F;
  --color-orange-medium: #FF8C5A;
  --color-orange-light: #FFA366;

  /* Gold & Yellow Tones */
  --color-gold: #FFD700;
  --color-yellow-light: #FFE34D;

  /* Neutral Grays */
  --color-gray-dark: #333333;
  --color-gray-medium: #666666;
  --color-gray-light: #E8E8E8;
  --color-white: #FFFFFF;

  /* Hover & Shadow Effects */
  --color-orange-dark: #E6722D;
  --color-orange-hover: #CC6633;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-medium: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* ============================================
   Global Styles
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-gray-dark);
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  font-size: 1rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography Hierarchy
   ============================================ */

/* Headings - Desktop (Roboto) */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-gray-dark);
  letter-spacing: -0.01em;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

h5 {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

h6 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  letter-spacing: 0;
}

/* Body Text (Roboto) */
p {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Word Wrap for all text elements */
h1, h2, h3, h4, h5, h6, li, span {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Small Text */
small, .text-small {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
}

/* Text Emphasis */
strong, .text-bold {
  font-weight: 700;
}

.text-medium {
  font-weight: 500;
}

.text-semibold {
  font-weight: 600;
}

/* Lead Text (larger paragraph) */
.lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
}

/* Responsive Typography - Mobile (max-width: 768px) */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  h3 {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  h4 {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  h5 {
    font-size: 1.125rem;
  }

  h6 {
    font-size: 1rem;
  }

  p, body {
    font-size: 1rem;
  }

  .lead {
    font-size: 1.125rem;
  }
}

/* Responsive Typography - Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  h4 {
    font-size: 1.125rem;
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  background: linear-gradient(135deg, var(--color-orange-primary) 0%, var(--color-orange-medium) 50%, var(--color-gold) 100%);
  color: var(--color-white);
  padding: var(--spacing-xl) var(--spacing-md);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 215, 0, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-section h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section h4,
.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  margin-bottom: var(--spacing-lg);
  color: #FFFFFF;
  opacity: 1;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-section p {
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  margin-bottom: var(--spacing-lg);
  color: #FFFFFF;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-medium);
  cursor: pointer;
  border: none;
  outline: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-orange-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-orange-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background-color: var(--color-gold);
  color: var(--color-gray-dark);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: #E6C200;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

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

/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  padding: var(--spacing-sm) var(--spacing-md);
  transition: all var(--transition-medium);
  z-index: 1000;
}

.navbar.scrolled {
  background-color: var(--color-orange-primary);
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
}

.navbar-nav a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width var(--transition-medium);
}

.navbar-nav a:hover::after {
  width: 100%;
}

.navbar-nav a:hover {
  color: var(--color-gold);
}

/* ============================================
   Section Styles
   ============================================ */
.section {
  padding: var(--spacing-xl) var(--spacing-md);
}

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

.section-bg-light {
  background-color: var(--color-gray-light);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gray-dark);
  margin-bottom: var(--spacing-md);
  text-align: center;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-orange-primary), var(--color-gold));
  margin: var(--spacing-sm) auto 0;
  border-radius: var(--radius-sm);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-gray-medium);
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-lg);
}

/* ============================================
   Modern Section Dividers
   ============================================ */
.section-divider {
  width: 100%;
  height: 80px;
  position: relative;
  overflow: hidden;
}

/* Divisor com ondas */
.divider-wave {
  background: linear-gradient(180deg, transparent 0%, #ffffff 100%);
  position: relative;
}

.divider-wave::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23ffffff' opacity='0.3'/%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' fill='%23ffffff' opacity='0.5'/%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat;
  background-size: cover;
  animation: wave 10s linear infinite;
}

@keyframes wave {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Divisor diagonal */
.divider-diagonal {
  background: linear-gradient(135deg, #f5f5f5 50%, #ffffff 50%);
  height: 60px;
}

/* Divisor com gradiente azul */
.divider-blue-gradient {
  background: linear-gradient(180deg, #1a2332 0%, #2c3e50 30%, #ffffff 100%);
  height: 100px;
}

/* Divisor com linha decorativa */
.divider-line {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  background: transparent;
}

.divider-line::before {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--color-orange-primary) 50%, transparent 100%);
  margin: 0 20px;
}

.divider-line::after {
  content: '◆';
  color: var(--color-orange-primary);
  font-size: 1.2rem;
}

/* Divisor com pontos */
.divider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 30px 0;
  background: transparent;
}

.divider-dots::before,
.divider-dots::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-orange-primary);
}

.divider-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-orange-primary), var(--color-gold));
  display: inline-block;
}

/* Divisor com forma geométrica */
.divider-geometric {
  position: relative;
  height: 80px;
  background: transparent;
  overflow: visible;
}

.divider-geometric::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-orange-primary), var(--color-gold));
  box-shadow: 0 4px 12px rgba(255, 127, 63, 0.3);
  border-radius: 8px;
}

/* Divisor SVG moderno */
.divider-svg {
  width: 100%;
  height: 80px;
  background: transparent;
  position: relative;
}

.divider-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Divisor com sombra suave */
.divider-shadow {
  height: 40px;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, transparent 100%);
}

/* ============================================
   Services Section with Gradient
   ============================================ */
.section-services-gradient {
  background: linear-gradient(180deg, #1a2332 0%, #2c3e50 30%, #4a5f7f 60%, #e8f0f8 90%, #ffffff 100%);
  padding: 70px 0;
  position: relative;
}

@media (max-width: 768px) {
  .section-services-gradient {
    padding: 50px 0;
  }
}

@media (max-width: 480px) {
  .section-services-gradient {
    padding: 40px 0;
  }
}

.section-services-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top, rgba(52, 152, 219, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.section-services-gradient .title {
  color: #ffffff;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-services-gradient .description {
  color: #e8f0f8;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.section-services-gradient .card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  padding: 30px 20px;
}

.section-services-gradient .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Ícones dos cards na cor azul */
.section-services-gradient .icon {
  background: linear-gradient(60deg, #1a2332, #2c3e50) !important;
  box-shadow: 0 4px 20px 0 rgba(26, 35, 50, 0.4), 0 7px 10px -5px rgba(44, 62, 80, 0.6) !important;
}

.section-services-gradient .icon i {
  color: #ffffff !important;
}

/* Layout dos textos */
.section-services-gradient .card-body {
  padding: 20px 15px;
  text-align: left;
}

.section-services-gradient .card-title {
  color: #1a2332;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 10px;
  text-align: center;
}

.section-services-gradient .card-category {
  color: #2c3e50;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 15px;
  text-align: center;
  font-style: italic;
}

.section-services-gradient .card-description {
  color: #4a5f7f;
  line-height: 1.7;
  text-align: justify;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.section-services-gradient ul {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.section-services-gradient ul li {
  color: #2c3e50;
  padding: 8px 0 8px 30px;
  position: relative;
  font-size: 0.9rem;
  line-height: 1.6;
}

.section-services-gradient ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2c3e50;
  font-weight: bold;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #4a5f7f, #2c3e50);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Service Cards
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-orange-primary);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 127, 63, 0.1), transparent);
  transition: left var(--transition-slow);
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--color-gold);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-orange-primary), var(--color-orange-medium));
  border-radius: 50%;
  color: var(--color-white);
  font-size: 2rem;
  transition: transform var(--transition-medium);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  font-size: 1.5rem;
  color: var(--color-gray-dark);
  margin-bottom: var(--spacing-sm);
}

.service-card p {
  color: var(--color-gray-medium);
  line-height: 1.7;
}

/* ============================================
   Portfolio Cards
   ============================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.portfolio-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.05);
}

.portfolio-content {
  padding: var(--spacing-md);
}

.portfolio-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, var(--color-orange-primary), var(--color-gold));
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-sm);
}

.portfolio-card h3 {
  font-size: 1.375rem;
  color: var(--color-gray-dark);
  margin-bottom: var(--spacing-xs);
}

.portfolio-card p {
  color: var(--color-gray-medium);
  line-height: 1.6;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--color-gray-dark);
  margin-bottom: var(--spacing-xs);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--color-gray-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  font-family: inherit;
  color: var(--color-gray-dark);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-orange-primary);
  box-shadow: 0 0 0 3px rgba(255, 127, 63, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-gray-medium);
  opacity: 0.7;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

@media (max-width: 480px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
  position: relative;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.testimonial-quote {
  font-size: 3rem;
  color: var(--color-orange-primary);
  opacity: 0.2;
  position: absolute;
  top: var(--spacing-sm);
  left: var(--spacing-sm);
  line-height: 1;
}

.testimonial-text {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-gray-medium);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-orange-primary), var(--color-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.25rem;
}

.testimonial-info h4 {
  font-size: 1rem;
  color: var(--color-gray-dark);
  margin-bottom: 0.25rem;
}

.testimonial-info p {
  font-size: 0.875rem;
  color: var(--color-gray-medium);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: var(--color-gray-dark);
  color: var(--color-white);
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
}

.footer-alt {
  background: linear-gradient(135deg, var(--color-orange-primary), var(--color-orange-dark));
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-gold);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--color-gold);
  text-decoration: underline;
}

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

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* ============================================
   Social Links
   ============================================ */
.social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--color-gold);
  color: var(--color-gray-dark);
  transform: translateY(-3px);
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

.text-gradient {
  background: linear-gradient(135deg, var(--color-orange-primary), var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

/* ============================================
   Loading Spinner
   ============================================ */
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--color-gray-light);
  border-top-color: var(--color-orange-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   Responsive Design - Media Queries
   ============================================ */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section h4,
  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-grid,
  .portfolio-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .navbar-nav {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .section-divider {
    height: 60px;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-xl: 2.5rem;
    --spacing-lg: 2rem;
  }

  .hero-section h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .hero-section h4,
  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .hero-section p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .service-card,
  .portfolio-card,
  .testimonial-card {
    padding: var(--spacing-md);
  }

  .section-title {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .card-icon-wrapper {
    min-height: 160px !important;
  }

  .card-icon-mobile {
    font-size: 60px !important;
  }

  .section-divider {
    height: 50px;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .navbar,
  .footer,
  .btn {
    display: none;
  }

  .section {
    page-break-inside: avoid;
  }
}

/* ============================================
   Language Selector Styles
   ============================================ */

.language-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.language-selector a {
  width: 32px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
  opacity: 0.6;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid transparent;
}

.language-selector a:hover {
  opacity: 1;
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.language-selector a.active {
  opacity: 1;
  border-color: var(--color-orange-primary, #ff7f3f);
  box-shadow: 0 0 8px rgba(255, 127, 63, 0.4);
}

.language-selector img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .language-selector {
    margin-left: 1rem;
    padding-left: 1rem;
  }

  .language-selector a {
    width: 28px;
    height: 21px;
  }
}

@media (max-width: 480px) {
  .language-selector {
    margin-left: 0.75rem;
    padding-left: 0.75rem;
    gap: 0.4rem;
  }

  .language-selector a {
    width: 26px;
    height: 19px;
  }
}

/* ============================================
   Logo Styles - Responsive
   ============================================ */
/* Logo no navbar principal (index.html) */
.navbar-logo {
  max-height: 80px;
  height: auto;
  width: auto;
  margin-right: 10px;
  vertical-align: middle;
  transition: all 0.3s ease;
  border-radius: 8px;
}

/* Logo na página de produto (produto-plataforma.html) */
.logo-img {
  max-height: 35px;
  height: auto;
  width: auto;
  margin-right: 8px;
  vertical-align: middle;
  transition: all 0.3s ease;
  border-radius: 8px;
}

/* Hover effects */
.navbar-logo:hover,
.logo-img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Responsivo - Tablets */
@media (max-width: 768px) {
  .navbar-logo {
    max-height: 65px;
    margin-right: 8px;
  }

  .logo-img {
    max-height: 30px;
    margin-right: 6px;
  }
}

/* Responsivo - Mobile */
@media (max-width: 480px) {
  .navbar-logo {
    max-height: 55px;
    margin-right: 6px;
  }

  .logo-img {
    max-height: 25px;
    margin-right: 5px;
  }
}

/* Garantir que o logo não quebre o layout */
.navbar-brand,
.logo {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.navbar-brand img,
.logo img {
  flex-shrink: 0;
}

/* ============================================
   Mobile Navigation - Icons Only
   ============================================ */

/* Tablets - Reduzir espaçamento */
@media (max-width: 768px) {
  .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }

  .nav-link i.material-icons {
    font-size: 1.25rem;
  }

  /* Footer mobile - reduzir ainda mais */
  .footer {
    padding: 6px 0;
  }

  .footer ul li a {
    padding: 6px 10px;
    font-size: 10px;
  }

  .footer .copyright {
    padding: 6px 0;
    font-size: 10px;
  }
}

/* Mobile - Apenas ícones na navegação */
@media (max-width: 576px) {
  .navbar .nav-link span {
    display: none;
  }

  .navbar .nav-link {
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  .navbar .nav-link i.material-icons {
    font-size: 1.5rem;
    margin-right: 0;
  }
}

/* ============================================
   Mobile Buttons - Compact Version
   ============================================ */

@media (max-width: 768px) {
  .btn.btn-lg {
    padding: 14px 24px;
    font-size: 0.9rem;
  }

  .btn i.material-icons {
    font-size: 1.125rem;
    margin-right: 4px;
  }
}

@media (max-width: 480px) {
  .btn.btn-lg {
    padding: 12px 20px;
    font-size: 0.85rem;
  }

  /* Reduzir ícones nos títulos de seção */
  .section-title .material-icons {
    font-size: 2rem !important;
  }

  .section-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }
}

/* Mobile Extra Small - Compactar ainda mais */
@media (max-width: 375px) {
  .section-title .material-icons {
    font-size: 1.5rem !important;
    display: block;
    margin: 0 auto 0.5rem;
  }
}
