/* Importing premium Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Variables for design system */
:root {
  /* Colors */
  --bg-deep-dark: #090703;
  --bg-dark: #171511;
  --bg-light: #F3EFEC;
  --bg-light-secondary: #E2E1DD;
  --color-primary: #12457A;
  --color-secondary: #3D4235;
  --text-dark: #090703;
  --text-light: #F3EFEC;
  --text-muted-dark: #6E6C68;
  --text-muted-light: #C4C2BE;
  
  /* Fonts */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout sizes & transitions */
  --container-max-width: 1200px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --box-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --box-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for sticky header */
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  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;
}

/* Utility Components */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 6rem 0;
}

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

.section-tag {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.75rem;
  background-color: rgba(18, 69, 122, 0.08);
  border-radius: 50px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--bg-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted-dark);
  font-size: 1.1rem;
}

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

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

.btn-primary:hover {
  background-color: #0d3763;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(18, 69, 122, 0.35);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--text-light);
}

.btn-secondary:hover {
  background-color: #2b3024;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(61, 66, 53, 0.35);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--text-light);
  color: var(--text-light);
}

.btn-outline:hover {
  background-color: var(--text-light);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background-color: transparent;
  border-color: var(--bg-dark);
  color: var(--bg-dark);
}

.btn-outline-dark:hover {
  background-color: var(--bg-dark);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #fff;
  border-color: #25D366;
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  border-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(243, 239, 236, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 225, 221, 0.5);
  transition: var(--transition-smooth);
}

.header.scrolled {
  padding: 0;
  box-shadow: var(--box-shadow-sm);
  background-color: rgba(243, 239, 236, 0.95);
}

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

.header.scrolled .nav-container {
  height: 65px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
}

.logo {
  height: 82px;
  width: auto;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.header.scrolled .logo {
  height: 67px;
}

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

.nav-link {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--bg-dark);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(9, 7, 3, 0.45), rgba(9, 7, 3, 0.65)), url('../img/hero-bg.jpg') no-repeat center center / cover;
  color: var(--text-light);
  padding-top: 80px;
}

.hero-content {
  max-width: 680px;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  /*color: #a4c5eb;*/
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: #fff;
  background: linear-gradient(120deg, #fff 0%, #a2c6ec 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted-light);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* About Section */
.about {
  background-color: var(--bg-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.about-image-container {
  position: relative;
}

.about-image {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-lg);
  position: relative;
  z-index: 2;
}

.about-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background-color: var(--color-primary);
  color: var(--text-light);
  padding: 1.5rem 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-md);
  z-index: 3;
  font-family: var(--font-title);
  text-align: center;
}

.about-image-badge span {
  display: block;
}

.badge-num {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.badge-text {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

.about-content-text p {
  color: var(--text-muted-dark);
  margin-bottom: 1.5rem;
}

.about-highlights {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.highlight-icon {
  color: var(--color-primary);
  background-color: rgba(18, 69, 122, 0.08);
  border-radius: 50%;
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-text h4 {
  font-size: 1.05rem;
  color: var(--bg-dark);
  margin-bottom: 0.25rem;
}

.highlight-text p {
  font-size: 0.9rem;
  color: var(--text-muted-dark);
  margin-bottom: 0;
}

/* Solutions Section */
.solutions {
  background-color: #fff;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.solution-card {
  background-color: var(--bg-light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(226, 225, 221, 0.4);
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
  border-color: rgba(18, 69, 122, 0.2);
}

.solution-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

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

.solution-card:hover .solution-image {
  transform: scale(1.05);
}

.solution-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.solution-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--bg-dark);
}

.solution-desc {
  font-size: 0.95rem;
  color: var(--text-muted-dark);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.solution-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
}

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

.solution-link svg {
  transition: var(--transition-smooth);
}

/* Differentials Section */
.differentials {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.differentials .section-title {
  color: var(--text-light);
}

.differentials .section-subtitle {
  color: var(--text-muted-light);
}

.differentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.diff-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 2.5rem 2rem;
  transition: var(--transition-smooth);
}

.diff-card:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(18, 69, 122, 0.3);
  transform: translateY(-3px);
}

.diff-icon {
  color: #a2c6ec;
  margin-bottom: 1.5rem;
  display: inline-block;
}

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

.diff-desc {
  font-size: 0.9rem;
  color: var(--text-muted-light);
}

/* CTA Contact Section */
.contact-cta {
  background: linear-gradient(rgba(18, 69, 122, 0.9), rgba(18, 69, 122, 0.95)), url('../img/hero-bg.jpg') no-repeat center center / cover;
  color: var(--text-light);
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.cta-desc {
  font-size: 1.2rem;
  color: rgba(243, 239, 236, 0.85);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Contact Info & Info Details Grid */
.contact-info {
  background-color: var(--bg-light);
}

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

.info-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.info-icon {
  background-color: #fff;
  border-radius: var(--border-radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  box-shadow: var(--box-shadow-sm);
  height: max-content;
}

.info-details h4 {
  font-size: 1.15rem;
  color: var(--bg-dark);
  margin-bottom: 0.5rem;
}

.info-details p {
  color: var(--text-muted-dark);
}

.info-details a:hover {
  color: var(--color-primary);
}

.contact-map-wrapper {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-md);
  background-color: #fff;
  border: 1px solid rgba(226, 225, 221, 0.8);
  display: flex;
  flex-direction: column;
}

.map-header {
  padding: 1.5rem 2rem;
  background-color: #fff;
  border-bottom: 1px solid rgba(226, 225, 221, 0.8);
}

.map-header h4 {
  font-size: 1.1rem;
  color: var(--bg-dark);
}

.map-header p {
  font-size: 0.85rem;
  color: var(--text-muted-dark);
}

.map-placeholder {
  position: relative;
  flex-grow: 1;
  min-height: 250px;
  background: linear-gradient(rgba(243, 239, 236, 0.7), rgba(243, 239, 236, 0.7)), radial-gradient(#cbd5e1 20%, transparent 20%), radial-gradient(#cbd5e1 20%, transparent 20%);
  background-size: 15px 15px;
  background-position: 0 0, 7.5px 7.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.map-marker {
  color: #dc2626;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.map-text h5 {
  font-size: 1.05rem;
  color: var(--bg-dark);
  margin-bottom: 0.25rem;
}

.map-text p {
  font-size: 0.85rem;
  color: var(--text-muted-dark);
}

/* Footer */
.footer {
  background-color: var(--bg-deep-dark);
  color: var(--text-light);
  padding: 5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-logo {
  height: 45px;
  width: auto;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: var(--text-muted-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-heading {
  font-size: 1.1rem;
  font-family: var(--font-title);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-primary);
}

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

.footer-links li {
  margin-bottom: 0.85rem;
}

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

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

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

.footer-contact-item svg {
  color: #a2c6ec;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted-light);
}

.footer-bottom a {
  color: rgb(162, 198, 236);
}

/* Utility helper for mobile-only visibility */
.mobile-only {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block !important;
  }
  
  li.mobile-only {
    display: list-item !important;
  }
}

/* Animations class */
/* Visible by default (for no-JS fallback) */
.fade-in-up {
  opacity: 1;
  transform: translateY(0);
}

/* Hidden by default only when JS is active, to be animated on scroll */
body.js-active .fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body.js-active .fade-in-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakdown */
@media (max-width: 1024px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .differentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  .section-padding {
    padding: 4rem 0;
  }
  .section-title {
    font-size: 2rem;
  }
  
  /* Navigation Mobile */
  .mobile-toggle {
    display: block;
    z-index: 1001;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-light);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    box-shadow: var(--box-shadow-lg);
    transition: var(--transition-smooth);
    z-index: 1000;
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .nav-actions {
    display: none;
  }

  .nav-menu .btn {
    display: flex;
    margin-top: 1rem;
  }
  
  /* Hero */
  .hero {
    min-height: auto;
    padding: 8rem 0 4rem 0;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  
  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-image-badge {
    right: 0;
    bottom: -15px;
  }
  
  /* Contact Info */
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 576px) {
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  .differentials-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .cta-title {
    font-size: 2.2rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
}
