/* Innovations By Chance — Mexlife-inspired theme */
:root {
  --navy: #002D3D;
  --navy-dark: #001f2a;
  --green: #28B661;
  --green-dark: #1f9a52;
  --green-light: #3ecf7a;
  --text: #4a5568;
  --text-dark: #1a202c;
  --bg-light: #f4f6f8;
  --bg-pattern: #eef1f4;
  --white: #ffffff;
  --shadow: 0 8px 30px rgba(0, 45, 61, 0.08);
  --shadow-sm: 0 4px 16px rgba(0, 45, 61, 0.06);
  --radius: 6px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
}

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

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--green-dark);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(1170px, 92%);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title .sub {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  text-transform: capitalize;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
}

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

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

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

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

.btn-white {
  background: var(--white);
  color: var(--green);
}

.btn-white:hover {
  background: #f0fdf4;
  color: var(--green-dark);
}

/* Top bar */
.top-bar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 10px 0;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.top-social {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-social a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.top-social a:hover {
  color: var(--green);
}

/* Header */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
  position: relative;
}

.logo-link img {
  height: 42px;
  width: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.92rem;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--green);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}

/* Hero */
.hero {
  background: var(--bg-pattern);
  background-image:
    linear-gradient(135deg, rgba(0, 45, 61, 0.03) 25%, transparent 25%),
    linear-gradient(225deg, rgba(0, 45, 61, 0.03) 25%, transparent 25%);
  background-size: 40px 40px;
  padding: 60px 0 40px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.hero-content p {
  font-size: 1.05rem;
  max-width: 520px;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* Feature cards */
.features-row {
  margin-top: -40px;
  position: relative;
  z-index: 2;
  padding-bottom: 60px;
}

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

.feature-card {
  background: var(--white);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(40, 182, 97, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 1.75rem;
}

.feature-card h3 {
  font-size: 1.15rem;
}

.read-more {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* About block */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-images {
  position: relative;
  min-height: 380px;
}

.about-images img.primary {
  width: 72%;
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-images img.secondary {
  position: absolute;
  right: 0;
  bottom: 20px;
  width: 55%;
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 6px solid var(--white);
  box-shadow: var(--shadow);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.check-list li {
  padding: 8px 0 8px 32px;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.stats-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-box {
  background: var(--bg-light);
  padding: 20px;
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
}

.stat-box strong {
  display: block;
  font-size: 1.75rem;
  color: var(--navy);
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.service-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: background 0.25s;
}

.service-tile i {
  font-size: 2rem;
  color: var(--green);
  margin-bottom: 12px;
}

.service-tile h4 {
  font-size: 0.95rem;
  margin: 0;
  color: var(--navy);
}

.service-tile:hover {
  background: var(--green);
}

.service-tile:hover h4,
.service-tile:hover i {
  color: var(--white);
}

/* CTA bar */
.cta-bar {
  background: var(--green);
  color: var(--white);
  padding: 36px 0;
}

.cta-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.cta-bar h3 {
  color: var(--white);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.35rem;
}

.cta-bar .icon-circle {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Why choose */
.why-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.why-text {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.why-text h2 {
  color: var(--white);
}

.why-text .check-list li::before {
  color: var(--green-light);
}

.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

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

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.team-card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.team-card .info {
  padding: 20px 16px 24px;
}

.team-card .role {
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
}

.team-social {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.team-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(40, 182, 97, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 0.8rem;
}

/* Stats banner */
.stats-banner {
  background: var(--green);
  color: var(--white);
  padding: 48px 0;
}

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

.stats-banner-grid strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 4px;
}

/* Quote section */
.quote-section {
  background: var(--bg-light);
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.quote-image img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.quote-form-wrap {
  padding: 48px 40px;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(40, 182, 97, 0.15);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #e53e3e;
}

.field-error {
  color: #e53e3e;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.field-error.show {
  display: block;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  accent-color: var(--green);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-group label {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.45;
  cursor: pointer;
}

.range-wrap label {
  display: flex;
  justify-content: space-between;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--green);
  margin-top: 8px;
}

.form-success {
  display: none;
  background: #ecfdf3;
  border: 1px solid var(--green);
  color: var(--navy);
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  margin-top: 16px;
}

.form-success.show {
  display: block;
}

/* Testimonials */
.testimonials {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
}

.testimonials .section-title h2 {
  color: var(--white);
}

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

.testimonial-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-card .quote {
  font-style: italic;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author strong {
  color: var(--white);
  display: block;
}

/* Partners */
.partners {
  padding: 40px 0;
  background: var(--bg-light);
}

.partners-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  opacity: 0.55;
  filter: grayscale(100%);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.blog-card .content {
  padding: 22px;
}

.blog-card .date {
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 600;
}

/* Page banner */
.page-banner {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}

.page-banner h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 8px;
}

.breadcrumb {
  font-size: 0.9rem;
  opacity: 0.85;
}

.breadcrumb a {
  color: var(--green-light);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.price-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 28px;
  text-align: center;
  border-top: 4px solid var(--green);
}

.price-card.featured {
  border-top-color: var(--navy);
  transform: scale(1.03);
}

.price-card .amount {
  font-size: 2.5rem;
  color: var(--navy);
  font-weight: 700;
}

.price-card .amount span {
  font-size: 1rem;
  color: var(--text);
  font-weight: 400;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  text-align: left;
}

.price-features li {
  padding: 8px 0;
  border-bottom: 1px solid #edf2f7;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.project-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0, 45, 61, 0.9));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: var(--white);
}

.project-overlay h3 {
  color: var(--white);
  margin: 0;
}

/* Legal content */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: var(--radius);
}

.contact-info-card h3 {
  color: var(--white);
}

.contact-info-card .item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-info-card .item i {
  color: var(--green);
  font-size: 1.25rem;
  margin-top: 4px;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
}

.footer-main {
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-grid h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-about p {
  font-size: 0.92rem;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  list-style: none;
  padding: 0;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.footer-social a:hover {
  background: var(--green);
  color: var(--white);
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
  color: var(--green);
}

.footer-news-mini {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.footer-news-mini img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.footer-news-mini a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  line-height: 1.4;
}

.footer-news-mini .meta {
  font-size: 0.75rem;
  color: var(--green);
}

.footer-subscribe-bar {
  background: var(--green-dark);
  padding: 28px 0;
}

.footer-subscribe-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-subscribe-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-subscribe-form input {
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius);
  min-width: 240px;
}

.footer-bottom {
  background: var(--navy-dark);
  padding: 18px 0;
  text-align: center;
  font-size: 0.88rem;
}

.footer-legal {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

/* Icon font substitute using unicode in CSS classes */
.icon::before {
  font-style: normal;
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 16px;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .hero .container,
  .about-grid,
  .quote-grid,
  .why-split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .testimonial-grid,
  .blog-grid,
  .pricing-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .price-card.featured {
    transform: none;
  }
}