/* ==========================================================================
   EKKO Engenharia Soluções BIM - Custom CSS (style.css)
   Palette: Predominant Blue (Navy/Royal), Orange (Accent), White & Gray
   ========================================================================== */

:root {
  --primary-navy: #0b2545;      /* Predominant Deep Navy Blue */
  --primary-blue: #1d4ed8;      /* Vibrant Royal / Engineered Blue */
  --primary-blue-light: #eff6ff;/* Soft Ice Blue */
  --accent-orange: #f97316;     /* High-Visibility Engineering Orange */
  --accent-amber: #f97316;      /* Orange Accent */
  --accent-gold: #fb923c;       /* Bright Warm Orange / Amber Accent */
  --accent-hover: #ea580c;      /* Deep Orange Hover */
  --dark-slate: #0f172a;        /* Deep Slate Gray Text */
  --text-muted: #64748b;        /* Balanced Gray Body / Secondary Text */
  --light-bg: #f8fafc;          /* Clean Light Gray Background */
  --card-border: #e2e8f0;       /* Crisp Slate Gray Border */
  --white: #ffffff;             /* Pure White */
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 10px 25px rgba(11, 37, 69, 0.10);
  --shadow-lg: 0 20px 40px rgba(11, 37, 69, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font-family);
  color: var(--dark-slate);
  background-color: #ffffff;
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- Bootstrap overrides for Blue / Orange / Gray Palette --- */
.text-warning {
  color: var(--accent-gold) !important;
}

.bg-warning {
  background-color: var(--accent-orange) !important;
  color: #ffffff !important;
}

.text-navy {
  color: var(--primary-navy) !important;
}

.bg-navy {
  background-color: var(--primary-navy) !important;
}

.text-orange {
  color: var(--accent-orange) !important;
}

.bg-orange {
  background-color: var(--accent-orange) !important;
  color: #ffffff !important;
}

.text-slate {
  color: var(--dark-slate) !important;
}

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

/* --- Top Announcement Bar --- */
.top-bar {
  background-color: var(--primary-navy);
  color: #cbd5e1;
  font-size: 0.875rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.top-bar a {
  color: #f1f5f9;
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-bar a:hover {
  color: var(--accent-gold);
}

.crea-badge {
  background-color: rgba(249, 115, 22, 0.18);
  color: var(--accent-gold);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

/* --- Navigation Header --- */
.navbar-custom {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  padding: 16px 0;
  transition: all 0.3s ease;
}

.navbar-custom.sticky-top {
  box-shadow: var(--shadow-md);
}

.navbar-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo-img {
  width: 180px;
  height: 80px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-logo-img:hover {
  transform: scale(1.02);
}

.footer-logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 10px;
  border-radius: 6px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
  color: var(--accent-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(11, 37, 69, 0.15);
}

.brand-text-title {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary-navy);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.brand-text-subtitle {
  font-size: 0.75rem;
  color: var(--accent-orange);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-link-custom {
  font-weight: 600;
  color: var(--dark-slate);
  padding: 8px 16px !important;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--primary-blue) !important;
  background-color: rgba(29, 78, 216, 0.08);
}

.btn-accent {
  background-color: var(--accent-orange);
  color: #ffffff;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.28);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.38);
}

.btn-navy {
  background-color: var(--primary-navy);
  color: #ffffff;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.25);
}

.btn-navy:hover {
  background-color: var(--primary-blue);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.35);
}

.btn-outline-navy {
  border: 2px solid var(--primary-navy);
  color: var(--primary-navy);
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  background: transparent;
  transition: all 0.25s ease;
}

.btn-outline-navy:hover {
  background-color: var(--primary-navy);
  color: #ffffff;
}

.btn-outline-orange {
  border: 2px solid var(--accent-orange);
  color: var(--accent-orange);
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  background: transparent;
  transition: all 0.25s ease;
}

.btn-outline-orange:hover {
  background-color: var(--accent-orange);
  color: #ffffff;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.94) 0%, rgba(15, 23, 42, 0.90) 100%),
              url('https://images.unsplash.com/photo-1541888946425-d0fbb186a5b3?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: #ffffff;
  padding: 100px 0 110px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(249, 115, 22, 0.45);
  color: var(--accent-gold);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  color: #e2e8f0;
  max-width: 600px;
  margin-bottom: 32px;
}

.hero-card-trust {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 28px;
  color: #ffffff;
}

.hero-stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.hero-stat-label {
  font-size: 0.875rem;
  color: #bfdbfe;
  font-weight: 600;
}

/* --- Section Titles & Headers --- */
.section-padding {
  padding: 80px 0;
}

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

.section-badge {
  display: inline-block;
  background-color: rgba(249, 115, 22, 0.12);
  color: var(--accent-orange);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto 48px;
}

/* --- Feature Cards & Services --- */
.service-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.service-card:hover::before {
  opacity: 1;
}

.service-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(29, 78, 216, 0.08);
  color: var(--primary-blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
  background: var(--accent-orange);
  color: #ffffff;
}

.service-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-navy);
  margin-bottom: 12px;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-link {
  color: var(--accent-orange);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  transition: gap 0.2s ease;
}

.service-link:hover {
  gap: 10px;
  color: var(--accent-hover);
}

/* --- Portfolio Card --- */
.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(29, 78, 216, 0.3);
}

.portfolio-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.portfolio-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img-wrapper img {
  transform: scale(1.08);
}

.portfolio-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(11, 37, 69, 0.88);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
}

.portfolio-content {
  padding: 24px;
}

.portfolio-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.portfolio-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

/* Filter buttons */
.filter-btn {
  border: 1px solid var(--card-border);
  background: #ffffff;
  color: var(--dark-slate);
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  margin: 4px;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
}

/* --- Testimonial Cards --- */
.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(249, 115, 22, 0.35);
}

.quote-icon {
  font-size: 2.5rem;
  color: rgba(249, 115, 22, 0.25);
  line-height: 1;
  margin-bottom: 12px;
}

.star-rating {
  color: var(--accent-orange);
  margin-bottom: 16px;
}

.testimonial-text {
  font-style: italic;
  color: #334155;
  margin-bottom: 24px;
  font-size: 0.98rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-orange);
}

.author-name {
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 2px;
}

.author-role {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* --- Before & After Slider Component --- */
.before-after-container {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  user-select: none;
}

.before-after-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-img-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  border-right: 3px solid var(--accent-orange);
}

.before-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  background: var(--accent-orange);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
  cursor: ew-resize;
}

.slider-label {
  position: absolute;
  bottom: 16px;
  padding: 4px 12px;
  background: rgba(11, 37, 69, 0.88);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  z-index: 5;
}

.label-before {
  left: 16px;
}

.label-after {
  right: 16px;
}

/* --- Timeline Component (Sobre Nós) --- */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #e2e8f0;
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-point {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--accent-orange);
  border: 4px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
  z-index: 2;
}

@media (max-width: 768px) {
  .timeline-point {
    left: 20px;
  }
}

.timeline-content {
  width: 45%;
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

@media (max-width: 768px) {
  .timeline-content {
    width: calc(100% - 50px);
    margin-left: 50px !important;
  }
}

.timeline-year {
  display: inline-block;
  color: var(--accent-orange);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

/* --- Team Member Card --- */
.team-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(29, 78, 216, 0.3);
}

.team-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}

.team-card:hover .team-img-wrapper img {
  transform: scale(1.03);
}

.team-crea-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--primary-navy);
  color: #ffffff;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.team-info {
  padding: 20px;
}

.team-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.team-role {
  color: var(--accent-orange);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

/* --- Interactive Budget Calculator (Serviços) --- */
.calculator-box {
  background: #ffffff;
  border: 2px solid var(--primary-blue);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.calc-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-step-number {
  width: 28px;
  height: 28px;
  background: var(--accent-orange);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.calc-result-box {
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
  color: #ffffff;
  padding: 28px;
  border-radius: var(--radius-md);
  text-align: center;
}

.calc-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin: 10px 0;
}

/* --- Contact & FAQ --- */
.contact-info-card {
  background: var(--primary-navy);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 36px;
  height: 100%;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.form-control-custom, .form-select-custom {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  font-size: 0.95rem;
  background-color: #ffffff;
  color: var(--dark-slate);
}

.form-control-custom:focus, .form-select-custom:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
  outline: none;
}

/* Accordion Custom */
.accordion-custom .accordion-item {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-custom .accordion-button {
  font-weight: 700;
  color: var(--primary-navy);
  background-color: #ffffff;
  padding: 18px 24px;
}

.accordion-custom .accordion-button:not(.collapsed) {
  color: var(--primary-blue);
  background-color: rgba(29, 78, 216, 0.05);
  box-shadow: none;
}

/* --- Footer --- */
.footer {
  background-color: #0b132b;
  color: #cbd5e1;
  padding: 70px 0 30px;
  font-size: 0.9rem;
}

.footer p,
.footer-desc {
  color: #cbd5e1 !important;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer .text-muted {
  color: #cbd5e1 !important;
}

.footer-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  margin-top: 50px;
  font-size: 0.85rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.whatsapp-float:hover {
  color: #ffffff;
  transform: scale(1.1);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 44px;
  height: 44px;
  background-color: var(--primary-navy);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  z-index: 998;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--accent-orange);
}

