/* Design System & Base Settings */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Light Palette (Default) */
  --primary-color: #444969; /* Closure dark blue/slate from logo */
  --primary-light: #5f658c;
  --primary-dark: #2f334d;
  --accent-color: #c29f68; /* Subtle gold/champagne for premium feel */
  --accent-hover: #a6844f;
  --accent-light: #f4eee2;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-inverse: #ffffff;
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.05);
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Dark Mode Override */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-tertiary: #1f2937;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --glass-bg: rgba(11, 15, 25, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    --accent-light: #24221c;
  }
}

/* Force dark/light theme if class present */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.05);
  --accent-light: #f4eee2;
}

[data-theme="dark"] {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --glass-bg: rgba(11, 15, 25, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  --accent-light: #24221c;
}

/* Reset & Utilities */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
  position: relative;
}

/* Common Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-headings);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-bounce);
  border: none;
  outline: none;
  gap: 8px;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(68, 73, 105, 0.2);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--text-inverse);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(194, 159, 104, 0.25);
}

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--text-inverse);
  transform: translateY(-3px);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 40px;
  margin-bottom: 16px;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 18px;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

header.menu-open {
  background: var(--bg-primary) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

header.menu-open .logo img {
  filter: none !important;
}

header.menu-open .nav-toggle {
  color: var(--text-main) !important;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img {
  height: 50px;
  transition: var(--transition-smooth);
  filter: brightness(0) invert(1); /* White logo on dark hero image */
}

header.scrolled .logo img {
  height: 45px;
  filter: none; /* Original brand colors when scrolled on light glass background */
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-headings);
  font-weight: 500;
  font-size: 16px;
  padding: 8px 0;
  position: relative;
  opacity: 0.85;
  color: #ffffff; /* White menu items by default on transparent header */
  text-shadow: 0 1px 3px rgba(15, 23, 42, 0.4);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-color);
  opacity: 1;
}

header.scrolled .nav-link {
  color: var(--text-main); /* Dark slate items when scrolled */
  text-shadow: none;
}

header.scrolled .nav-link:hover,
header.scrolled .nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #ffffff; /* White icon by default */
}

header.scrolled .nav-toggle {
  color: var(--text-main); /* Dark slate icon when scrolled */
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 700px;
  background-image: 
    linear-gradient(to bottom, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0) 150px),
    linear-gradient(to right, rgba(15, 23, 42, 0.85) 35%, rgba(15, 23, 42, 0.35)), 
    url('assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--text-inverse);
  padding-top: 80px;
}

.hero-content {
  max-width: 650px;
  animation: fadeInUp 1s ease;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 24px;
  color: var(--accent-color);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-badge span {
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-color);
  animation: pulse 1.5s infinite;
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-content h1 span {
  color: var(--accent-color);
  background: linear-gradient(to right, #f2d299, var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 16px;
}

/* Stats Section */
.stats {
  padding: 40px 0;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--bg-tertiary);
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  padding: 30px 24px;
  border-radius: var(--border-radius-md);
  text-align: center;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 8px;
  font-family: var(--font-headings);
}

.stat-label {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Quem Somos Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h3 {
  font-size: 22px;
  color: var(--accent-color);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-content p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.about-bullets {
  list-style: none;
  margin-bottom: 32px;
}

.about-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.about-bullets li svg {
  width: 20px;
  height: 20px;
  color: var(--accent-color);
  flex-shrink: 0;
  margin-top: 3px;
}

.about-bullets li span {
  font-size: 16px;
  color: var(--text-main);
  font-weight: 500;
}

.about-media {
  position: relative;
  height: 500px;
}

.about-img-container {
  position: absolute;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border: 4px solid var(--bg-primary);
  transition: var(--transition-bounce);
}

.about-img-1 {
  width: 80%;
  height: 70%;
  left: 0;
  top: 0;
  z-index: 2;
}

.about-img-2 {
  width: 70%;
  height: 60%;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.about-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-media:hover .about-img-1 {
  transform: scale(1.03) translate(-10px, -10px);
  z-index: 1;
}

.about-media:hover .about-img-2 {
  transform: scale(1.05) translate(10px, 10px);
  z-index: 2;
}

/* Serviços Section */
.services {
  background-color: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition-bounce);
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

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

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.service-card:hover .service-img img {
  transform: scale(1.1);
}

.service-body {
  padding: 30px;
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-sm);
  background-color: var(--accent-light);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(194, 159, 104, 0.1);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5px;
}

.service-body h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.service-body p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--primary-color);
}

.service-link svg {
  width: 16px;
  height: 16px;
  transition: var(--transition-smooth);
}

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

.service-link:hover svg {
  transform: translateX(4px);
}

.services-footer {
  text-align: center;
  margin-top: 50px;
}

/* Diferenciais Section */
.differentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.diff-card {
  padding: 40px 30px;
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
  border: 1px solid var(--glass-border);
}

.diff-card:hover {
  transform: translateY(-5px);
  background-color: var(--bg-secondary);
  border-color: var(--accent-color);
}

.diff-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.diff-icon svg {
  width: 28px;
  height: 28px;
}

.diff-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.diff-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Portfólio Section */
.portfolio {
  background-color: var(--bg-secondary);
}

.portfolio-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  list-style: none;
}

.filter-btn {
  background: none;
  border: 1px solid var(--glass-border);
  padding: 10px 24px;
  border-radius: 50px;
  font-family: var(--font-headings);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  color: var(--text-muted);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color);
  color: var(--text-inverse);
  border-color: var(--primary-color);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  transition: var(--transition-smooth);
}

.portfolio-item {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
  height: 400px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.03);
  display: block;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0.1) 100%);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-smooth);
}

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

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-overlay span {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.portfolio-overlay h3 {
  color: var(--text-inverse);
  font-size: 22px;
  margin-bottom: 12px;
}

.portfolio-zoom {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  transition: var(--transition-bounce);
}

.portfolio-item:hover .portfolio-zoom {
  transform: scale(1.1);
}

.portfolio-zoom svg {
  width: 20px;
  height: 20px;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  position: relative;
  animation: zoomIn 0.4s ease;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-inverse);
  cursor: pointer;
  padding: 8px;
}

.lightbox-close svg {
  width: 32px;
  height: 32px;
}

.lightbox-caption {
  color: var(--text-inverse);
  text-align: center;
  margin-top: 16px;
  font-size: 18px;
  font-family: var(--font-headings);
}

/* Testimonials Section */
.testimonials {
  overflow: hidden;
}

.carousel-container {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
}

.carousel-track-wrapper {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.testimonial-card {
  padding: 50px 40px;
  border-radius: var(--border-radius-lg);
  position: relative;
}

.quote-icon {
  color: var(--accent-color);
  opacity: 0.15;
  position: absolute;
  top: 30px;
  left: 40px;
}

.quote-icon svg {
  width: 60px;
  height: 60px;
}

.stars {
  display: flex;
  gap: 4px;
  color: #fbbf24;
  margin-bottom: 24px;
}

.stars svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.testimonial-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 30px;
  font-style: italic;
  font-weight: 300;
}

.client-info h4 {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.client-info span {
  font-size: 14px;
  color: var(--text-muted);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.carousel-btn {
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-bounce);
}

.carousel-btn:hover {
  background-color: var(--primary-color);
  color: var(--text-inverse);
  transform: scale(1.05);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--text-muted);
  opacity: 0.3;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.carousel-dot.active {
  opacity: 1;
  background-color: var(--accent-color);
  width: 24px;
  border-radius: 5px;
}

/* Contato Section */
.contact {
  background-color: var(--bg-secondary);
}

.contact-grid {
  display: block;
}

.contact-info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.contact-card {
  padding: 30px;
  border-radius: var(--border-radius-md);
  display: flex;
  gap: 20px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-sm);
  background-color: var(--accent-light);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-details h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.contact-details p {
  color: var(--text-muted);
  font-size: 15px;
  white-space: pre-line;
}

.contact-form-container {
  padding: 40px;
  border-radius: var(--border-radius-lg);
}

.contact-form h3 {
  font-size: 24px;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-control {
  width: 100%;
  padding: 16px;
  background-color: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(194, 159, 104, 0.15);
}

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

/* Success Modal */
.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.success-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.success-card {
  padding: 40px;
  border-radius: var(--border-radius-lg);
  max-width: 450px;
  width: 90%;
  text-align: center;
  animation: scaleUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #d1fae5;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-icon svg {
  width: 36px;
  height: 36px;
}

.success-card h4 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.success-card p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 24px;
}

/* Footer */
footer {
  background-color: #0f172a;
  color: #f1f5f9;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: #94a3b8;
  margin: 20px 0 24px;
  font-size: 15px;
}

.social-links {
  display: flex;
  gap: 16px;
  list-style: none;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  background-color: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f1f5f9;
}

.social-link:hover {
  background-color: var(--accent-color);
  color: var(--text-inverse);
  transform: translateY(-3px);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer-nav h4 {
  font-size: 18px;
  margin-bottom: 24px;
  color: var(--accent-color);
}

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

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

.footer-links a {
  color: #94a3b8;
  font-size: 15px;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 4px;
}

.footer-contact h4 {
  font-size: 18px;
  margin-bottom: 24px;
  color: var(--accent-color);
}

.footer-contact p {
  color: #94a3b8;
  font-size: 15px;
  margin-bottom: 12px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #94a3b8;
  font-size: 14px;
}

/* Floating WhatsApp Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.whatsapp-bubble {
  max-width: 280px;
  padding: 16px 20px;
  border-radius: var(--border-radius-md);
  border-bottom-right-radius: 4px;
  color: var(--text-main);
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  animation: floatBubble 4s ease-in-out infinite;
  display: none; /* Controlled by JS */
}

.whatsapp-bubble.active {
  display: block;
}

.whatsapp-bubble p {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  padding-right: 16px;
}

.whatsapp-bubble-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

.whatsapp-bubble-close svg {
  width: 16px;
  height: 16px;
}

.whatsapp-btn {
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  transition: var(--transition-bounce);
  animation: pulseBtn 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1) rotate(5deg);
  background-color: #20ba5a;
}

.whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(194, 159, 104, 0.4);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(194, 159, 104, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(194, 159, 104, 0);
  }
}

@keyframes pulseBtn {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes floatBubble {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 46px;
  }
  
  .about-grid {
    gap: 40px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .differentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-info-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }
  
  .section-header h2 {
    font-size: 32px;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transition: var(--transition-smooth);
    box-shadow: var(--glass-shadow);
    align-items: center;
    overflow-y: auto;
  }
  
  .nav-menu .nav-link {
    color: var(--text-main); /* Ensure visible text on solid mobile menu background */
    font-size: 18px;
    padding: 10px 0;
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    color: var(--primary-color);
  }
  
  .nav-menu .nav-link::after {
    display: none; /* Hide bottom line hover effect on mobile */
  }

  .portfolio-item {
    cursor: pointer;
  }
  
  .portfolio-overlay {
    opacity: 1 !important;
    transform: translateY(0) !important;
    padding: 20px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%) !important;
  }
  
  .portfolio-zoom {
    display: none !important; /* Hide zoom button on mobile since entire card is clickable */
  }

  .lightbox-close {
    top: 20px !important;
    right: 20px !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: var(--transition-bounce) !important;
  }
  
  .lightbox-close:hover {
    background: rgba(15, 23, 42, 0.8) !important;
    transform: scale(1.1) !important;
  }
  
  .whatsapp-bubble {
    display: none !important;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero {
    text-align: center;
    justify-content: center;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-btns {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-btns .btn {
    width: 100%;
  }
  
  .stats {
    margin-top: 0;
    padding: 30px 0;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .stat-card {
    padding: 16px;
  }
  
  .stat-number {
    font-size: 32px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .about-media {
    height: 400px;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
  
  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .differentials-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* Instagram Section */
.instagram-section {
  padding: 80px 0;
  background-color: var(--bg-primary);
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

.instagram-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.instagram-icon-svg {
  width: 48px;
  height: 48px;
  color: var(--accent-color);
  margin-bottom: 16px;
}

.instagram-header h3 {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.instagram-handle {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 18px;
  color: var(--accent-color);
}

.instagram-handle:hover {
  color: var(--accent-hover);
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.instagram-post-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  display: block;
}

.instagram-post-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.instagram-post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
  color: white;
  gap: 8px;
}

.instagram-post-overlay svg {
  width: 30px;
  height: 30px;
  fill: white;
  transition: var(--transition-bounce);
}

.instagram-post-card:hover img {
  transform: scale(1.05);
}

.instagram-post-card:hover .instagram-post-overlay {
  opacity: 1;
}

.instagram-post-card:hover .instagram-post-overlay svg {
  transform: scale(1.1);
}

.instagram-footer {
  margin-top: 20px;
}

@media (max-width: 1024px) {
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .instagram-section {
    padding: 60px 0;
  }
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .instagram-header h3 {
    font-size: 24px;
  }
}

/* Extra Small Devices (Mobile) */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  section {
    padding: 50px 0;
  }
  
  .section-header {
    margin-bottom: 35px;
  }
  
  .section-header h2 {
    font-size: 26px;
    margin-bottom: 12px;
  }
  
  .section-header p {
    font-size: 14px;
  }
  
  /* Hero Section */
  .hero {
    padding-top: 110px;
    min-height: auto;
    height: auto;
    padding-bottom: 70px;
  }
  
  .hero-content h1 {
    font-size: 32px;
    line-height: 1.25;
  }
  
  .hero-content p {
    font-size: 15px;
  }
  
  .hero-badge {
    font-size: 12px;
    padding: 6px 12px;
    margin-bottom: 16px;
  }
  
  /* Stats Section */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .stat-card {
    padding: 12px 10px;
  }
  
  .stat-number {
    font-size: 26px;
    margin-bottom: 4px;
  }
  
  .stat-label {
    font-size: 11px;
  }
  
  /* Quem Somos */
  .about-media {
    height: 280px;
  }
  
  .about-bullets li span {
    font-size: 14px;
  }
  
  .about-bullets li svg {
    width: 18px;
    height: 18px;
    margin-top: 2px;
  }
  
  /* Serviços */
  .service-body {
    padding: 20px;
  }
  
  .service-img {
    height: 180px;
  }
  
  .service-body h3 {
    font-size: 18px;
  }
  
  .service-body p {
    font-size: 14px;
  }
  
  /* Diferenciais */
  .diff-card {
    padding: 24px 16px;
  }
  
  /* Portfólio */
  .portfolio-item {
    height: 280px;
  }
  
  .portfolio-filters {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  
  .filter-btn {
    padding: 6px 14px;
    font-size: 12px;
  }
  
  /* Depoimentos */
  .testimonial-card {
    padding: 30px 16px;
  }
  
  .testimonial-text {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .quote-icon {
    top: 20px;
    left: 20px;
  }
  
  .quote-icon svg {
    width: 40px;
    height: 40px;
  }
  
  /* Widget WhatsApp */
  .whatsapp-widget {
    bottom: 20px;
    right: 20px;
    gap: 8px;
  }
  
  .whatsapp-btn {
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-btn svg {
    width: 26px;
    height: 26px;
  }
  
  .whatsapp-bubble {
    max-width: 230px;
    padding: 12px 16px;
  }
  
  .whatsapp-bubble p {
    font-size: 12px;
  }
}
