/* style.css - Design System & Styling for Sogel Construtora */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Assistant:wght@200;300;400;500;600;700;800&display=swap');

/* CSS Variables for design system */
:root {
  --color-bg: #f8fafc; /* Light main background */
  --color-bg-alt: #f0f4f7; /* Harmonious soft blue-gray background tint */
  --color-surface: #ffffff; /* White card surface */
  --color-surface-hover: rgba(0, 94, 150, 0.03);
  --color-border: #b9c9d2; /* Logo Blue-Gray border */
  --color-primary: #005e96; /* Logo Primary Navy Blue */
  --color-primary-hover: #004d7c;
  --color-accent: #5bc4bf; /* Logo Accent Teal */
  --color-accent-hover: #48b2ad;
  --color-text: #1e293b; /* Dark slate text for high contrast */
  --color-text-muted: #475569; /* Muted gray text with good contrast */
  
  --font-title: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Assistant', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 94, 150, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 94, 150, 0.1);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --border-radius: 8px;
  --border-radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 80, 143, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
}

h1 {
  font-size: 2.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

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

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

p {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

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

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-normal);
}

header.scrolled {
  background-color: #ffffff;
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem; /* Safety gap prevents logo and links overlap */
  transition: var(--transition-normal);
}

header.scrolled .nav-container {
  padding: 0.8rem 2rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0; /* Prevents logo from squishing */
  min-width: 130px;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
  transition: var(--transition-fast);
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.95rem;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-item a {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.nav-item a:hover {
  color: var(--color-primary);
}

.nav-item.active a {
  color: var(--color-primary);
}

.nav-item.active a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 1px;
}

.nav-item .nav-cta {
  background: var(--color-primary);
  color: #ffffff !important;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.65rem 1.5rem !important; /* Forces breathing room padding */
  border-radius: 6px;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 94, 150, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: var(--transition-normal);
  margin-left: 1rem;
}

.nav-item .nav-cta:hover {
  background: var(--color-accent) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 196, 191, 0.35) !important;
  text-decoration: none;
}

.nav-item .nav-cta::after {
  display: none !important;
}

/* Hamburger button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  position: absolute;
  transition: var(--transition-normal);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Main layouts and wrappers */
main {
  margin-top: 80px; /* offset for fixed header */
  min-height: calc(100vh - 80px - 300px);
}

section {
  padding: 5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

/* Edge-to-edge overrides for background banners and full-width layouts */
section.hero,
section.page-header-banner,
section.section-alt {
  max-width: 100%;
  width: 100%;
  margin: 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
  width: 100%;
}

.section-alt > div {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

/* Page Header Banners with Background Image Overlay */
.page-header-banner {
  position: relative;
  height: 280px;
  display: flex;
  align-items: center;
  background-color: var(--color-primary);
  padding: 0;
  border-bottom: 2px solid var(--color-primary);
  width: 100%;
  overflow: hidden;
}

.page-header-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.page-header-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, rgba(0, 94, 150, 0) 100%);
  z-index: 2;
}

.page-header-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
  animation: fadeInUp 0.6s ease-out;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.page-header-content > * {
  grid-column: 1;
}

.page-header-content h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  border: none;
  padding: 0;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 4px rgba(7, 19, 36, 0.8);
}

.page-header-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 200; /* Assistant Extra Light */
  margin-bottom: 0;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(7, 19, 36, 0.8);
}

@media (max-width: 768px) {
  .page-header-image {
    width: 100%;
    left: 0;
  }
  .page-header-image::before {
    background: linear-gradient(90deg, rgba(0, 94, 150, 0.9) 0%, rgba(0, 94, 150, 0.7) 100%);
  }
  .page-header-content {
    grid-template-columns: 1fr;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center 80%;
  background-repeat: no-repeat;
  padding: 6rem 0;
  width: 100%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(7, 19, 36, 0.5) 0%, rgba(7, 19, 36, 0.35) 50%, rgba(0, 94, 150, 0.15) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(7, 19, 36, 0.8);
}

.hero-title span {
  color: var(--color-accent);
}

.hero-brand-title {
  font-family: 'Montserrat', var(--font-title);
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 4px 12px rgba(7, 19, 36, 0.9);
}

.hero-brand-subtitle {
  font-family: 'Montserrat', var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: #ffffff;
  opacity: 0.9;
  text-shadow: 0 2px 6px rgba(7, 19, 36, 0.9);
}

/* Custom styling for Hero CTA buttons - White background, blue text */
.hero .btn-primary,
.hero .btn-secondary {
  background-color: #ffffff !important;
  color: var(--color-primary) !important;
  border-color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
}

.hero .btn-primary:hover,
.hero .btn-secondary:hover {
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 6px 20px rgba(0, 94, 150, 0.4) !important;
  transform: translateY(-3px) !important;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 300;
  max-width: 750px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(7, 19, 36, 0.8);
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 159, 0, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-3px);
}

/* Secondary button on dark backgrounds (Hero, page header, divider sections) */
.hero .btn-secondary,
.image-divider-section .btn-secondary,
.page-header-banner .btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.hero .btn-secondary:hover,
.image-divider-section .btn-secondary:hover,
.page-header-banner .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
}

/* Card grids & Surfaces */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--color-primary);
  transition: var(--transition-normal);
}

.card:hover {
  background-color: var(--color-surface-hover);
  transform: translateY(-8px);
  border-color: rgba(91, 196, 191, 0.3);
  box-shadow: var(--shadow-md);
}

.card:hover::before {
  height: 100%;
}

.card-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.card-desc {
  font-size: 0.95rem;
  font-weight: 300; /* Assistant Light */
  color: var(--color-text-muted);
  flex-grow: 1;
}

/* Split content layout */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-layout.reverse {
  direction: rtl;
}

.split-layout.reverse > * {
  direction: ltr;
}

.split-img-wrapper {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.split-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: var(--transition-slow);
}

.split-img-wrapper:hover .split-img {
  transform: scale(1.05);
}

.split-text h2 {
  margin-bottom: 1.5rem;
}

.split-text p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* Credentials Block (Stats) */
.stats-banner {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  margin: 3rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1.25rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: var(--color-border);
}

.stat-number {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 300; /* Assistant Light */
  color: var(--color-text-muted);
}

/* Tabs & Categories (Obras) */
.tabs-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.tab-btn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-family: var(--font-title);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
}

.tab-btn.active {
  background: var(--color-primary);
  color: var(--color-bg);
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(91, 196, 191, 0.3);
}

/* Works gallery */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.work-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-normal);
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 196, 191, 0.3);
  box-shadow: var(--shadow-md);
}

.work-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.work-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.work-card:hover .work-img {
  transform: scale(1.06);
}

.work-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(0, 94, 150, 0.9); /* Primary Navy Blue background */
  backdrop-filter: blur(4px);
  color: #ffffff; /* Clean white text for perfect readability */
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--color-accent); /* Accent Teal border */
}

.work-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.work-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.work-desc {
  font-size: 0.9rem;
  font-weight: 300; /* Assistant Light */
  color: var(--color-text-muted);
  flex-grow: 1;
}

/* Client logos grid */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.client-logo-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1rem;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.client-logo-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.client-logo-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* Contact page elements & Forms */
.contact-container {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 4rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  background-color: rgba(255, 159, 0, 0.1);
  color: var(--color-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  border: 1px solid rgba(91, 196, 191, 0.3);
}

.contact-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-text p, .contact-text a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.form-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-label {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-input, .form-textarea, .form-select {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  transition: var(--transition-fast);
  width: 100%;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 94, 150, 0.15);
}

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

/* File Upload Button wrapper */
.file-upload-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.file-upload-btn {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--color-border);
  color: var(--color-text-muted);
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.file-upload-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

.file-name-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Footer styling */
footer {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 4rem 2rem 2rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-about {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  height: 38px;
  width: auto;
  align-self: flex-start;
}

.footer-about p {
  font-size: 0.95rem;
  max-width: 450px;
}

.footer-links h4, .footer-contact h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-list a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.footer-links-list a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-contact-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .split-layout { gap: 2rem; }
  .contact-container { gap: 2rem; }
}

@media (max-width: 768px) {
  section { padding: 3rem 1.5rem; }
  .section-alt > div { padding: 3rem 1.5rem; }
  

  
  .split-layout {
    grid-template-columns: 1fr;
  }
  
  .split-layout.reverse {
    direction: ltr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-full {
    grid-column: span 1;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .stats-banner {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
  
  .mv-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-item:not(:last-child)::after {
    display: none;
  }
  
  .stat-item {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
  }
  
  .stat-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }
}


/* Navigation Breakpoint for Laptops and Tablets (Prevents Menu Line Wrapping) */
@media (max-width: 1200px) {
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 80px);
    background-color: var(--color-surface);
    border-left: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    z-index: 999;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-item a {
    display: block;
    width: 100%;
    padding: 0.75rem 0;
    font-size: 1.05rem;
  }
  
  .nav-item.active a::after {
    left: 0;
    bottom: 0;
    width: 30px;
  }
  
  .nav-item .nav-cta {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem !important;
  }

  .lang-switch {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    margin-left: 0 !important;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    width: 100%;
    font-size: 1.05rem;
    gap: 0.5rem;
  }

  .lang-switch a.lang-link {
    display: inline-block !important;
    width: auto !important;
    padding: 0.5rem 0.75rem !important;
  }
}


/* Elegant Image-Based Section Dividers (Parallax Effect) */
.image-divider-section {
  position: relative;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Parallax effect */
  background-repeat: no-repeat;
  padding: 0;
  max-width: 100%;
  width: 100%;
  margin: 0;
  overflow: hidden;
}

@media (max-width: 768px) {
  .image-divider-section {
    background-attachment: scroll; /* Fallback for mobile */
    height: 260px;
  }
}

.image-divider-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(7, 19, 36, 0.85) 0%, rgba(0, 94, 150, 0.7) 100%);
  z-index: 1;
}

.image-divider-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 2rem;
  color: #ffffff;
  animation: fadeInUp 0.8s ease-out;
}

.image-divider-content h2 {
  color: #ffffff !important;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.image-divider-content h2::after {
  display: none !important; /* Prevents underline inside dividers */
}

.image-divider-content p {
  color: rgba(255, 255, 255, 0.95) !important;
  font-family: var(--font-body);
  font-weight: 200; /* Assistant Extra Light */
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 0;
}


/* Center text helper */
.text-center {
  text-align: center !important;
}

/* Center heading underlines (dividores) when text is centered */
h2.section-title.text-center::after,
.text-center h2.section-title::after,
h2.section-title[style*="text-align: center"]::after,
h2.section-title[style*="text-align:center"]::after {
  left: 50% !important;
  transform: translateX(-50%) !important;
}

/* Media query override for form card padding on mobile */
@media (max-width: 768px) {
  .form-card {
    padding: 1.5rem;
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 4px 15px rgba(18, 140, 126, 0.4);
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
}

.whatsapp-float.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 25px rgba(18, 140, 126, 0.6);
  background: linear-gradient(135deg, #2ae06c 0%, #149c8c 100%);
}

/* Tooltip for WhatsApp */
.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background-color: #071324;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Custom Carousels Styling */
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
}

/* Historical and compliance carousel styling adjustments if border color requested */
.historical-carousel {
  border: none !important;
  aspect-ratio: 4/3 !important;
  background-color: var(--color-bg-alt);
}

.historical-carousel .carousel-slide img {
  object-fit: contain !important;
}

.carousel-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide img,
.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Navigation arrows */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(7, 19, 36, 0.65);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.2s ease;
  z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-accent);
  transform: translateY(-50%) scale(1.05);
}

.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }

/* Dot indicators */
.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(7, 19, 36, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

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



/* Language Switcher in Navigation Menu */
.lang-switch {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-border);
  margin-left: 1rem;
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  white-space: nowrap;
}

.lang-link {
  color: var(--color-text-muted) !important;
  transition: var(--transition-fast);
  padding: 0 0.2rem !important;
}

.lang-link:hover {
  color: var(--color-primary) !important;
}

.lang-link.active {
  color: var(--color-primary) !important;
  font-weight: 800;
}
