/*
Theme Name: Içamentos Bahia
Theme URI: https://icamentosbahia.com.br
Author: STC Sale & Technology Consulting
Author URI: https://stcagency.com.br
Description: Içamentos técnicos de cargas em Salvador-BA.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: icamentos-bahia
*/

/* ===== RESET & BASE ===== */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Oswald:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --bg: hsl(0 0% 7%);
  --bg-dark: hsl(0 0% 4%);
  --card: hsl(0 0% 10%);
  --foreground: hsl(0 0% 95%);
  --secondary: hsl(24 95% 48%);
  --secondary-fg: hsl(0 0% 100%);
  --accent: hsl(38 92% 50%);
  --muted: hsl(0 0% 60%);
  --border: hsl(0 0% 18%);
  --radius: 0.5rem;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.1;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== UTILITIES ===== */
.text-gradient-orange {
  background-image: linear-gradient(135deg, hsl(24 95% 48%), hsl(38 92% 50%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-secondary { color: var(--secondary); }
.text-muted { color: var(--muted); }

.font-mono { font-family: 'JetBrains Mono', monospace; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--secondary);
  color: var(--secondary-fg);
  animation: safety-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid hsl(0 0% 95% / 0.3);
}
.btn-outline:hover {
  background: hsl(0 0% 95% / 0.1);
}

.btn-skew {
  transform: skewX(-10deg);
}
.btn-skew span {
  display: block;
  transform: skewX(10deg);
}

@keyframes safety-pulse {
  0%, 100% { box-shadow: 0 0 8px hsl(24 95% 48% / 0.4); }
  50% { box-shadow: 0 0 24px hsl(24 95% 48% / 0.7); }
}

/* ===== INDUSTRIAL CARD ===== */
.industrial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}
.industrial-card:hover {
  border-color: hsl(24 95% 48% / 0.6);
  box-shadow: 0 0 30px hsl(24 95% 48% / 0.2);
}

/* ===== NAVBAR ===== */
.site-navbar {
  position: fixed;
  width: 100%;
  z-index: 50;
  transition: all 0.5s ease;
  border-bottom: 1px solid hsl(24 95% 48% / 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: hsl(0 0% 4% / 0.8);
  padding: 1rem 0;
}
.site-navbar.scrolled {
  background: hsl(0 0% 4% / 0.98);
  padding: 0.5rem 0;
  box-shadow: 0 4px 30px hsl(0 0% 0% / 0.3);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.navbar-brand img {
  height: 2.5rem;
  width: auto;
}
.navbar-brand span {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  color: var(--foreground);
  letter-spacing: 0.05em;
}
.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: hsl(0 0% 95% / 0.7);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s;
}
.nav-links a:hover {
  color: var(--secondary);
}
.nav-links a:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--foreground);
  font-size: 1.75rem;
  cursor: pointer;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1rem;
  background: var(--bg-dark);
  border-top: 1px solid hsl(24 95% 48% / 0.2);
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: hsl(0 0% 95% / 0.8);
  padding: 0.5rem 0;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .mobile-toggle { display: none; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) brightness(0.4);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(0 0% 4%), hsl(0 0% 4% / 0.6), hsl(0 0% 4% / 0.3));
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1rem;
  max-width: 64rem;
}
.hero-badge {
  display: inline-block;
  border: 1px solid hsl(24 95% 48% / 0.6);
  color: var(--secondary);
  padding: 0.5rem 1.25rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-family: 'Roboto', sans-serif;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 4.25rem);
  color: var(--foreground);
}
.hero-subtitle {
  color: hsl(0 0% 95% / 0.6);
  max-width: 42rem;
  margin: 1.5rem auto 0;
  font-size: clamp(0.85rem, 1.5vw, 1.125rem);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: hsl(0 0% 95% / 0.4);
  animation: bounce-down 2s ease-in-out infinite;
}
@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

/* ===== COMMITMENT / COMPROMISSO ===== */
.commitment-section {
  padding: 2rem 0 3.5rem;
  background: var(--card);
}
.commitment-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
  margin-bottom: 1.5rem;
}
.commitment-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 48rem;
  margin: 0 auto;
  font-size: clamp(0.85rem, 1.2vw, 1.125rem);
  line-height: 1.7;
}
.commitment-note {
  text-align: center;
  color: hsl(0 0% 60% / 0.6);
  font-size: 0.8rem;
  margin-top: 1.5rem;
}

/* ===== COUNTERS ===== */
.counters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
.counter-card {
  border: 1px solid var(--border);
  background: hsl(0 0% 7% / 0.7);
  backdrop-filter: blur(4px);
  border-radius: 0.75rem;
  padding: 1.25rem 1rem;
  text-align: center;
}
.counter-value {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  color: var(--secondary);
  line-height: 1;
}
.counter-label {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
@media (min-width: 640px) {
  .counters-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== SAFETY SPECS / O QUE NOS DIFERENCIA ===== */
.safety-section {
  padding: 4rem 0 5rem;
  background: var(--bg-dark);
}
.safety-section h2 {
  font-size: clamp(1.5rem, 3vw, 3rem);
  text-align: center;
  margin-bottom: 1rem;
}
.safety-intro {
  text-align: center;
  color: hsl(0 0% 95% / 0.5);
  max-width: 42rem;
  margin: 0 auto 3rem;
  font-size: clamp(0.85rem, 1.2vw, 1.125rem);
  line-height: 1.7;
}
.safety-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.safety-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}
.safety-card:hover {
  border-color: hsl(24 95% 48% / 0.6);
  box-shadow: 0 0 30px hsl(24 95% 48% / 0.2);
}
.safety-card svg {
  color: var(--secondary);
  margin-bottom: 1rem;
  transition: transform 0.3s;
}
.safety-card:hover svg {
  transform: scale(1.1);
}
.safety-card h3 {
  font-size: 1rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}
.safety-card p {
  font-size: 0.875rem;
  color: hsl(0 0% 95% / 0.5);
  line-height: 1.6;
}
@media (min-width: 768px) {
  .safety-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .safety-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== SERVICE TABS / TIPOS DE IÇAMENTO ===== */
.services-section {
  padding: 4rem 0 5rem;
  background: var(--card);
}
.services-section h2 {
  font-size: clamp(1.5rem, 3vw, 3rem);
  text-align: center;
  margin-bottom: 0.5rem;
}
.services-intro {
  text-align: center;
  color: var(--muted);
  margin-bottom: 3rem;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.service-category {
  background: hsl(0 0% 4% / 0.5);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.5s;
}
.service-category:hover {
  border-color: hsl(24 95% 48% / 0.4);
}
.service-category h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  color: var(--secondary);
  text-align: center;
  margin-bottom: 1.5rem;
  transition: letter-spacing 0.3s;
}
.service-category:hover h3 {
  letter-spacing: 0.1em;
}
.service-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: hsl(0 0% 10% / 0.5);
  transition: background 0.3s;
  margin-bottom: 0.75rem;
}
.service-item:hover {
  background: var(--card);
}
.service-item svg {
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 2px;
}
.service-item strong {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  display: block;
  color: var(--foreground);
}
.service-item span {
  font-size: 0.75rem;
  color: hsl(0 0% 95% / 0.4);
  margin-top: 0.25rem;
  display: block;
  line-height: 1.5;
}
.service-protocol {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(0 0% 18% / 0.5);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}
.service-protocol svg {
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 2px;
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== GALLERY ===== */
.gallery-section {
  padding: 5rem 0;
  background: var(--bg-dark);
}
.gallery-section h2 {
  font-size: clamp(1.5rem, 3vw, 3rem);
  text-align: center;
  margin-bottom: 0.5rem;
}
.gallery-intro {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2.5rem;
}
.gallery-carousel {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
}
.gallery-viewport {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid hsl(0 0% 18% / 0.4);
  background: hsl(0 0% 10% / 0.2);
}
.gallery-viewport img,
.gallery-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: hsl(0 0% 4% / 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid hsl(24 95% 48% / 0.4);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
}
.gallery-nav-btn:hover {
  background: var(--secondary);
  color: var(--secondary-fg);
}
.gallery-nav-btn.prev { left: 0.5rem; }
.gallery-nav-btn.next { right: 0.5rem; }
.gallery-counter {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: hsl(0 0% 4% / 0.85);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: hsl(0 0% 95% / 0.8);
  z-index: 10;
}
.gallery-thumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.gallery-thumb {
  width: 2.75rem;
  height: 4rem;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.65;
  transition: all 0.3s;
  border: 2px solid transparent;
}
.gallery-thumb:hover { opacity: 0.95; }
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--secondary);
  transform: scale(1.05);
  box-shadow: 0 0 0 2px var(--bg-dark), 0 0 0 4px var(--secondary);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  padding: 5rem 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.testimonials-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 49px, hsl(24 95% 48% / 0.3) 50px),
    repeating-linear-gradient(90deg, transparent, transparent 49px, hsl(24 95% 48% / 0.3) 50px);
}
.testimonials-section h2 {
  font-size: clamp(1.5rem, 3vw, 3rem);
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 1;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.testimonial-card {
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid hsl(24 95% 48% / 0.2);
  background: var(--card);
  transition: border-color 0.3s;
}
.testimonial-card:hover {
  border-color: hsl(24 95% 48% / 0.5);
}
.testimonial-card .tc-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.testimonial-card .tc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.testimonial-card:hover .tc-image img {
  transform: scale(1.05);
}
.testimonial-card .tc-info {
  padding: 1.5rem;
}
.tc-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}
.tc-stars svg {
  width: 1rem;
  height: 1rem;
  fill: var(--secondary);
  color: var(--secondary);
}
.testimonial-card h3 {
  font-size: 1.25rem;
  color: var(--foreground);
}
.testimonial-card .tc-role {
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.25rem;
}
.testimonial-card .tc-quote {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  line-height: 1.6;
  font-style: italic;
}
@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== FAQ ===== */
.faq-section {
  padding: 4rem 0 5rem;
  background: var(--card);
}
.faq-section h2 {
  font-size: clamp(1.5rem, 3vw, 3rem);
  text-align: center;
  margin-bottom: 3rem;
}
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg-dark);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item:hover {
  border-color: hsl(24 95% 48% / 0.3);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--foreground);
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  transition: color 0.3s;
}
.faq-question:hover {
  color: var(--secondary);
}
.faq-question svg {
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}
.faq-answer {
  display: none;
  padding: 0 1.25rem 1rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  display: block;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-dark);
  padding: 3rem 0 2rem;
  border-top: 1px solid hsl(24 95% 48% / 0.3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-brand img {
  height: 2.5rem;
  width: auto;
}
.footer-brand span {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  color: var(--foreground);
}
.footer-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.footer-info svg {
  color: var(--secondary);
  flex-shrink: 0;
}
.footer-cnpj {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: hsl(0 0% 60% / 0.6);
}
.footer-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: hsl(0 0% 60% / 0.6);
  font-style: italic;
  margin-top: 1rem;
}
.footer-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--secondary);
  margin-bottom: 1rem;
}
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-badge {
  padding: 0.375rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  transition: border-color 0.3s;
}
.footer-badge:hover {
  border-color: hsl(24 95% 48% / 0.4);
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.3s;
}
.footer-social a:hover {
  color: var(--secondary);
}
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}
.footer-contact a:hover {
  color: var(--secondary);
}
.footer-contact svg {
  color: var(--secondary);
}
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-bottom p {
  color: hsl(0 0% 60% / 0.4);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}
.footer-bottom a {
  color: hsl(24 95% 48% / 0.6);
  transition: color 0.3s;
}
.footer-bottom a:hover {
  color: var(--secondary);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== SECTION CTA (reusable) ===== */
.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: hsl(0 0% 0% / 0.95);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.open {
  display: flex;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: hsl(0 0% 4% / 0.8);
  border: 1px solid var(--border);
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 101;
}
.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
}
