/* =============================================================================
   Modern CSS Reset & Variables - 2025
============================================================================= */

:root {
  /* Brand Colors */
  --brand-primary: #bda574;
  --brand-secondary: #a38e50;
  --brand-dark: #0d1925;
  --brand-light: #f8f6f3;

  /* Functional Colors */
  --text-primary: #0d1925;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --surface-primary: #ffffff;
  --surface-secondary: #f7fafc;
  --surface-accent: #edf2f7;

  /* Social Colors */
  --whatsapp: #25d366;
  --instagram: #e4405f;
  --spotify: #1db954;
  --email: #3182ce;

  /* Layout */
  --header-height: 80px;
  --header-height-mobile: 70px;
  --container-max-width: 1200px;
  --container-padding: clamp(1rem, 5vw, 3rem);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;

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

  /* Borders & Shadows */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--surface-primary);
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

/* =============================================================================
   Utility Classes
============================================================================= */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================================================
   Header - Modern Fixed Navigation
============================================================================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--brand-dark);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1002;
  transition: all var(--transition-base);
}

.header-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: 0 var(--container-padding);
  position: relative;
  z-index: 1003;
}

.logo img {
  height: 50px;
  width: auto;
  background: transparent;
  mix-blend-mode: normal;
  transition: transform var(--transition-base);
}

.logo {
  background: transparent;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

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

/* Desktop Navigation */
.nav {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-xl);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-lg);
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-lg);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brand-primary);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.nav-link:hover {
  background: var(--brand-primary);
  color: var(--brand-dark);
  transform: translateY(-2px);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 1004;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--brand-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.hamburger-line:not(:last-child) {
  margin-bottom: 4px;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -3px);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--brand-dark);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1001;
  transform: translateY(-100%);
  transition: transform var(--transition-base);
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

.mobile-nav.active {
  transform: translateY(0);
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: var(--space-lg) 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  display: block;
  padding: var(--space-lg) var(--container-padding);
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-lg);
  transition: all var(--transition-base);
  border-left: 4px solid transparent;
}

.mobile-nav-link:hover {
  background: rgba(189, 165, 116, 0.1);
  border-left-color: var(--brand-primary);
  color: #ffffff;
}

/* =============================================================================
   Hero Section - Modern Design
============================================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(13, 25, 37, 0.8) 0%, rgba(13, 25, 37, 0.6) 100%),
    url('assets/images/banner.jpg') center center / cover no-repeat;
  color: white;
  text-align: center;
  overflow: hidden;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: var(--space-2xl) var(--space-lg);
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--space-2xl);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.brand-highlight {
  color: var(--brand-primary);
  position: relative;
}

.brand-highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--brand-primary) 50%, transparent 100%);
  border-radius: 2px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: center;
  align-items: center;
}

/* =============================================================================
   CTA Buttons - Enhanced Design
============================================================================= */

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-xl);
  background: var(--surface-primary);
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-lg);
  border-radius: var(--radius-2xl);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

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

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.cta-packages:hover {
  background: var(--brand-primary);
  color: var(--brand-dark);
  transform: translateY(-4px) scale(1.05);
}

.cta-whatsapp:hover {
  background: var(--whatsapp);
  color: white;
}

.cta-instagram:hover {
  background: var(--instagram);
  color: white;
}

.cta-spotify:hover {
  background: var(--spotify);
  color: white;
}

/* =============================================================================
   Section Styling
============================================================================= */

section {
  scroll-margin-top: calc(var(--header-height) + var(--space-lg));
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--brand-dark);
  text-align: center;
  margin: 0 0 var(--space-3xl);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 2px;
}

/* =============================================================================
   Packages Section - Modern Grid
============================================================================= */

.packages {
  padding: var(--space-3xl) 0;
  background: var(--surface-secondary);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

.package-card {
  background: var(--surface-primary);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  transform: translateY(30px);
  opacity: 0;
}

.package-card.animate-in {
  transform: translateY(0);
  opacity: 1;
}

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

.package-link {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
  position: relative;
}

.package-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface-accent);
}

.package-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform var(--transition-slow);
}

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

.package-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(13, 25, 37, 0.9));
  padding: var(--space-2xl) var(--space-lg) var(--space-lg);
}

.package-title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: white;
  margin: 0 0 var(--space-xs);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.package-action {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  color: var(--brand-primary);
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

.package-card:hover .package-action {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================================
   About Section - Enhanced Layout
============================================================================= */

.about {
  padding: var(--space-3xl) 0;
  background: var(--brand-light);
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3xl);
  margin-top: var(--space-2xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-intro {
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--brand-dark);
  margin: 0 0 var(--space-2xl);
  line-height: 1.7;
  text-align: left;
  width: 100%;
}

.company-values {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  width: 100%;
}

.value-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--surface-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  transform: translateX(-30px);
  opacity: 0;
}

.value-item.animate-in {
  transform: translateX(0);
  opacity: 1;
}

.value-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.value-icon {
  font-size: var(--font-size-2xl);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 3px solid var(--brand-primary);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.value-content h3 {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--brand-dark);
  margin: 0 0 var(--space-sm);
}

.value-content p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.about-certification {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: var(--space-lg);
}

.about-certification img {
  max-width: 350px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base);
}

.about-certification img:hover {
  transform: scale(1.05);
}

/* =============================================================================
   How It Works Section - Step by Step Process
============================================================================= */

.how-it-works {
  padding: var(--space-3xl) 0;
  background: var(--surface-primary);
  position: relative;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(189, 165, 116, 0.03) 0%,
      rgba(13, 25, 37, 0.02) 50%,
      rgba(189, 165, 116, 0.03) 100%);
  pointer-events: none;
}

.steps-container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-2xl);
  max-width: 900px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  padding: var(--space-xl);
  background: var(--surface-primary);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(189, 165, 116, 0.1);
  transition: all var(--transition-base);
  position: relative;
  transform: translateY(30px);
  opacity: 0;
}

.step-item.animate-in {
  transform: translateY(0);
  opacity: 1;
}

.step-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(189, 165, 116, 0.2);
}

.step-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.step-number {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.step-emoji {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.step-count {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: var(--brand-dark);
  font-weight: 700;
  font-size: var(--font-size-xl);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.step-title {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: var(--brand-dark);
  margin: 0;
  line-height: 1.3;
}

.step-description {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.step-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--whatsapp);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-lg);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  align-self: flex-start;
  margin-top: var(--space-sm);
}

.step-button:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.step-button:hover::before {
  left: 100%;
}

/* =============================================================================
   Quote Form - Modern Design
============================================================================= */

.quote {
  padding: var(--space-3xl) 0;
  background: var(--surface-primary);
}

.quote-form {
  max-width: 600px;
  margin: var(--space-2xl) auto 0;
  display: grid;
  gap: var(--space-xl);
}

.form-group {
  position: relative;
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-lg);
  border: 2px solid var(--surface-accent);
  border-radius: var(--radius-lg);
  background: var(--surface-primary);
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
  outline: none;
  font-family: inherit;
}

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

.form-input:focus,
.form-textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(189, 165, 116, 0.1);
}

.form-input.error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.error-message {
  display: block;
  color: #e53e3e;
  font-size: var(--font-size-sm);
  margin-top: var(--space-xs);
  font-weight: 500;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-2xl);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: var(--brand-dark);
  border: none;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: var(--font-size-lg);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.form-submit::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all var(--transition-slow);
  transform: translate(-50%, -50%);
}

.form-submit:hover::before {
  width: 300px;
  height: 300px;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.form-submit:active {
  transform: translateY(0);
}

/* Form Contact Preferences */
.form-options {
  margin: var(--space-lg) 0;
}

.contact-preference {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.preference-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--font-size-base);
}

.preference-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.preference-option {
  position: relative;
  cursor: pointer;
}

.preference-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.preference-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--surface-accent);
  border-radius: var(--radius-lg);
  background: var(--surface-primary);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition-base);
  min-width: 120px;
  justify-content: center;
}

.preference-option input[type="radio"]:checked+.preference-button {
  border-color: var(--brand-primary);
  background: rgba(189, 165, 116, 0.1);
  color: var(--brand-dark);
}

.preference-button:hover {
  border-color: var(--brand-primary);
  background: rgba(189, 165, 116, 0.05);
}

/* Form Alternative */
.form-alternative {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--surface-accent);
}

.alternative-text {
  margin: 0 0 var(--space-md);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.alternative-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: transparent;
  border: 2px solid var(--whatsapp);
  color: var(--whatsapp);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.alternative-button:hover {
  background: var(--whatsapp);
  color: white;
}

/* Success Message */
.success-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3000;

  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: var(--space-2xl);
  border-radius: var(--radius-2xl);
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: slideInDown 0.5s ease-out;
  max-width: 90%;
  width: 400px;
}

.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.success-content i {
  font-size: 3rem;
}

.success-content h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: 600;
}

.success-content p {
  margin: 0;
  font-size: var(--font-size-lg);
  opacity: 0.9;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================================================
   Contact Section
============================================================================= */

.contact {
  padding: var(--space-3xl) 0;
  background: var(--brand-dark);
  color: white;
  text-align: center;
}

.contact .section-title {
  color: white;
}

.contact .section-title::after {
  background: linear-gradient(90deg, var(--brand-primary), white);
}

.contact-description {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: center;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-2xl);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-lg);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.contact-whatsapp {
  background: var(--whatsapp);
  color: white;
}

.contact-email {
  background: var(--email);
  color: white;
}

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

.contact-button:hover::before {
  left: 100%;
}

.contact-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* =============================================================================
   Gallery Modal & Carousel
============================================================================= */

.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
}

.gallery-modal.active {
  opacity: 1;
  visibility: visible;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.gallery-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.gallery-modal.active .gallery-container {
  transform: scale(1);
}

.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--brand-dark), #1a2332);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--brand-primary);
}

.gallery-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.2rem;
}

.gallery-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.gallery-content {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  min-height: 400px;
  overflow: hidden;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  font-size: 1.1rem;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
  left: 1rem;
}

.gallery-next {
  right: 1rem;
}

.gallery-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem 1rem 1rem;
  position: relative;
  overflow: visible;
}

.gallery-image {
  max-width: 100%;
  max-height: calc(100% - 60px);
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  object-fit: contain;
  display: block;
}

.gallery-info {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  z-index: 5;
}

.gallery-counter {
  color: white;
  font-weight: 500;
}

.gallery-actions {
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--brand-dark), #1a2332);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
}

.gallery-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--whatsapp);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.gallery-cta:hover {
  background: #128c7e;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.gallery-container.is-empty .gallery-image {
  display: none;
}

.gallery-container.is-empty .gallery-nav {
  display: none !important;
}

.gallery-container.is-empty .gallery-info {
  background: var(--surface-secondary);
  /* mesma cor da caixa */
  box-shadow: none;
  border: 1px solid var(--surface-accent);
}

.gallery-container.is-empty .gallery-counter {
  color: var(--text-primary);
  display: block;
  font-weight: 600;
}

/* =============================================================================
   Footer
============================================================================= */

.footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-text {
  margin: 0;
  font-size: var(--font-size-sm);
}

/* =============================================================================
   Animations
============================================================================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* =============================================================================
   Responsive Design - Mobile First
============================================================================= */

@media (max-width: 1024px) {
  .about-content {
    gap: var(--space-2xl);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-button {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: var(--header-height-mobile);
    --container-padding: var(--space-lg);
  }

  /* Mobile Header */
  .header {
    height: var(--header-height-mobile);
  }

  .header-container {
    padding: 0 var(--space-lg);
    height: var(--header-height-mobile);
  }

  .logo {
    order: 1;
    flex: 1;
    display: flex;
    justify-content: flex-start;
  }

  .logo img {
    height: 40px;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    order: 2;
    display: flex;
    flex-shrink: 0;
  }

  .mobile-nav {
    display: none;
    top: var(--header-height-mobile);
  }

  .mobile-nav.active {
    display: block;
  }

  /* Mobile Hero */
  .hero {
    min-height: 100svh;
    /* Use small viewport height for mobile */
    padding: var(--space-2xl) 0;
  }

  .hero-content {
    padding: var(--space-lg);
  }

  /* Mobile Packages */
  .packages-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Mobile About */
  .about-content {
    padding: 0 var(--space-md);
  }

  .value-item {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }

  .value-icon {
    align-self: center;
  }

  /* Mobile How It Works */
  .step-item {
    flex-direction: column;
    text-align: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
  }

  .step-number {
    order: 1;
    align-self: center;
  }

  .step-content {
    order: 2;
    align-items: center;
  }

  .step-emoji {
    font-size: 2.5rem;
  }

  .step-button {
    align-self: center;
  }

  /* Mobile Form */
  .quote-form {
    margin-top: var(--space-lg);
  }

  .preference-buttons {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .preference-button {
    min-width: auto;
    width: 100%;
  }

  /* Mobile Section Titles */
  .section-title {
    line-height: 1.3;
    margin-bottom: var(--space-2xl);
  }

  .section-title::after {
    bottom: -var(--space-xl);
  }

  /* Mobile Contact */
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-button {
    justify-content: center;
  }

  /* Mobile Gallery */
  .gallery-modal {
    padding: 0.5rem;
  }
  
  .gallery-container {
    max-width: 95vw;
    max-height: 95vh;
  }

  .gallery-header {
    padding: 0.75rem 1rem;
  }

  .gallery-title {
    font-size: 1.1rem;
  }

  .gallery-main {
    padding: 0.5rem 0.75rem 1rem 0.75rem;
  }

  .gallery-image {
    max-height: calc(100% - 50px);
  }
  
  .gallery-nav {
    width: 40px;
    height: 40px;
  }
  
  .gallery-prev {
    left: 0.5rem;
  }
  
  .gallery-next {
    right: 0.5rem;
  }
  
  .gallery-actions {
    padding: 0.75rem 1rem;
  }
  
  .gallery-cta {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }

  .gallery-nav {
    width: 45px;
    height: 45px;
  }

  .gallery-prev {
    left: var(--space-md);
  }

  .gallery-next {
    right: var(--space-md);
  }

  .gallery-actions {
    padding: var(--space-md) var(--space-lg);
  }

  .gallery-cta {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-base);
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: var(--space-md);
  }

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

  .hero-actions {
    gap: var(--space-md);
  }

  .cta-button {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-base);
  }

  /* Extra small devices - Section titles */
  .section-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-lg);
  }

  .section-title::after {
    bottom: 0;
    width: 60px;
    height: 3px;
  }
}

/* =============================================================================
   Performance & Accessibility Enhancements
============================================================================= */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-content {
    animation: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {

  .nav-link,
  .mobile-nav-link {
    border: 1px solid currentColor;
  }

  .cta-button,
  .contact-button,
  .form-submit {
    border: 2px solid currentColor;
  }
}

/* Dark mode support (future-ready) */
@media (prefers-color-scheme: dark) {
  .about {
    background: var(--brand-dark);
  }

  .about .section-title {
    color: white;
  }

  .about-intro {
    color: rgba(255, 255, 255, 0.9);
  }

  .value-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .value-content h3 {
    color: white;
  }

  .value-content p {
    color: rgba(255, 255, 255, 0.8);
  }
}

/* Focus styles for better accessibility */
*:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* Improved focus for interactive elements */
.nav-link:focus-visible,
.mobile-nav-link:focus-visible,
.cta-button:focus-visible,
.contact-button:focus-visible,
.form-submit:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 2px;
}

/* =============================================================================
   Loading States & Progressive Enhancement
============================================================================= */

/* Image loading states */
img {
  transition: opacity var(--transition-base);
}

img[loading="lazy"] {
  opacity: 1;
}

/* Form loading state */
.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-submit.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  margin-left: var(--space-sm);
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Prevent layout shift */
body.menu-open,
body.gallery-open {
  overflow: hidden;
}

/* Estados ativos do modal */
.gallery-modal.active .gallery-actions {
  display: flex;
}

.gallery-modal.active .gallery-cta {
  display: inline-flex;
}

/* Melhorias de acessibilidade e UX */
.gallery-image {
  transition: opacity 0.3s ease;
}

.gallery-image:not([src]) {
  opacity: 0;
}

.gallery-image:hover {
  cursor: zoom-in;
}

/* Navegação touch otimizada */
@media (hover: none) and (pointer: coarse) {
  .gallery-nav {
    opacity: 0.9;
  }
  
  .gallery-nav:active {
    transform: translateY(-50%) scale(0.95);
  }
  
  .gallery-image:hover {
    cursor: default;
  }
}

/* Estados vazios melhorados */
.gallery-container.is-empty .gallery-image {
  display: none;
}

.gallery-container.is-empty .gallery-nav {
  display: none;
}

.gallery-container.is-empty .gallery-counter {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.9);
}

.gallery-container.is-empty .gallery-info {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
}

/* Ensure proper mobile header layout */
@media (max-width: 480px) {
  .header-container {
    padding: 0 var(--space-md);
  }

  .logo img {
    height: 35px;
  }

  .menu-toggle {
    width: 35px;
    height: 35px;
  }

  .hamburger-line {
    width: 20px;
  }
}