/* Mercury Barcelona - Custom Styles with Spectre CSS */

:root {
  --mercury-orange: #FF7302;
  --mercury-orange-dark: #E66500;
  --mercury-orange-light: #FFA94D;
  --mercury-dark: #1a1a2e;
  --mercury-gray: #2d2d44;
  --mercury-light: #f8f9fa;
  --mercury-text: #333333;
  --mercury-text-light: #666666;
}

/* Typography */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--mercury-text);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--mercury-dark);
}

/* Navigation */
.navbar {
  background: var(--mercury-dark);
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
}

.navbar-brand .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--mercury-orange), var(--mercury-orange-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
  background: rgba(255,255,255,0.1);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--mercury-dark) 0%, var(--mercury-gray) 100%);
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  font-size: 3.2rem;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--mercury-orange);
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn-mercury {
  background: linear-gradient(135deg, var(--mercury-orange), var(--mercury-orange-dark));
  color: white;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 115, 2, 0.3);
}

.btn-mercury:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 115, 2, 0.4);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: white;
  color: var(--mercury-dark);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-dark {
  background: var(--mercury-dark);
  color: white;
}

.section-dark h2, .section-dark h3 {
  color: white;
}

.section-gray {
  background: var(--mercury-light);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--mercury-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-title p {
  color: rgba(255,255,255,0.7);
}

/* Service Cards */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.service-card .icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--mercury-orange), var(--mercury-orange-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-card .icon svg {
  width: 30px;
  height: 30px;
  color: white;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--mercury-text-light);
  margin-bottom: 1.5rem;
}

.service-card a {
  color: var(--mercury-orange);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card a:hover {
  gap: 0.75rem;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--mercury-orange);
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 1rem;
  color: var(--mercury-text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
}

.feature-item .icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: rgba(255, 115, 2, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mercury-orange);
}

.feature-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: var(--mercury-text-light);
  font-size: 0.95rem;
}

/* Image Section */
.image-text-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.image-text-section.reverse {
  direction: rtl;
}

.image-text-section.reverse > * {
  direction: ltr;
}

.image-text-section img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.image-text-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.image-text-section p {
  color: var(--mercury-text-light);
  margin-bottom: 1.5rem;
}

.image-text-section ul {
  list-style: none;
  padding: 0;
}

.image-text-section li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.image-text-section li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--mercury-orange);
  border-radius: 50%;
}

/* Projects */
.project-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.project-card .content {
  padding: 1.5rem;
}

.project-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.project-card p {
  color: var(--mercury-text-light);
  font-size: 0.95rem;
}

/* Industries */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.industry-item {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  border-left: 4px solid var(--mercury-orange);
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.industry-item h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--mercury-dark);
}

.industry-item p {
  color: var(--mercury-text-light);
  margin-bottom: 1rem;
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.industry-tags span {
  background: rgba(255, 115, 2, 0.1);
  color: var(--mercury-orange-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item .icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 115, 2, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mercury-orange);
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--mercury-text-light);
  font-size: 0.95rem;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

.contact-form h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--mercury-orange);
}

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

/* Footer */
.footer {
  background: var(--mercury-dark);
  color: white;
  padding: 4rem 0 2rem;
}

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

.footer-brand p {
  color: rgba(255,255,255,0.7);
  margin-top: 1rem;
  max-width: 300px;
}

.footer h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

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

.footer li {
  margin-bottom: 0.75rem;
}

.footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--mercury-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

/* Page Headers */
.page-header {
  background: linear-gradient(135deg, var(--mercury-dark) 0%, var(--mercury-gray) 100%);
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,115,2,0.1)" stroke-width="0.5"/></svg>');
  background-size: 200px;
  opacity: 0.5;
}

.page-header h1 {
  color: white;
  font-size: 2.8rem;
  margin-bottom: 1rem;
  position: relative;
}

.page-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* Content Sections */
.content-section {
  padding: 3rem 0;
}

.content-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--mercury-dark);
}

.content-section h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--mercury-dark);
}

.content-section p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  background: var(--mercury-light);
}

.breadcrumb-list {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-list li::after {
  content: '/';
  margin-left: 0.5rem;
  color: #999;
}

.breadcrumb-list li:last-child::after {
  content: '';
}

.breadcrumb-list a {
  color: var(--mercury-orange);
  text-decoration: none;
}

.breadcrumb-list span {
  color: var(--mercury-text-light);
}

/* Responsive */
@media (max-width: 992px) {
  .image-text-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .image-text-section.reverse {
    direction: ltr;
  }

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

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--mercury-dark);
    flex-direction: column;
    padding: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title h2 {
    font-size: 2rem;
  }

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

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

  .stat-item h3 {
    font-size: 2rem;
  }
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

.text-orange {
  color: var(--mercury-orange);
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-4 {
  margin-top: 2rem;
}
