/* YeshFresh Insurance — Mexlife-inspired theme */
:root {
  --purple-deep: #2d2a77;
  --purple-mid: #4a3f9f;
  --purple-light: #6b5dd3;
  --cyan: #2ec4c6;
  --cyan-bright: #00d4aa;
  --magenta: #a855f7;
  --text: #3d3d56;
  --text-muted: #6b7280;
  --white: #ffffff;
  --bg-soft: #f4f6fb;
  --bg-pale: #eef1ff;
  --footer: #1a1845;
  --shadow: 0 12px 40px rgba(45, 42, 119, 0.1);
  --radius: 16px;
  --radius-pill: 50px;
  --font: "Poppins", "Segoe UI", system-ui, sans-serif;
  --gradient-hero: linear-gradient(135deg, #2ec4c6 0%, #8b7cf7 55%, #c4b5fd 100%);
  --gradient-cta: linear-gradient(90deg, #2d2a77 0%, #2ec4c6 100%);
  --gradient-btn: linear-gradient(135deg, #4a3f9f, #2d2a77);
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

a:hover {
  color: var(--cyan);
}

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

p {
  margin: 0 0 1rem;
}

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

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-pale {
  background: var(--bg-pale);
}

.section-title {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-title .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.section-title h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.section-title p {
  color: var(--text-muted);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45, 42, 119, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo-link {
  flex-shrink: 0;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-btn);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(45, 42, 119, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  color: var(--white);
}

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

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

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

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

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 5rem;
  background: var(--gradient-hero);
}

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

.hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--purple-deep);
  margin-bottom: 1.25rem;
}

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

.hero-visual {
  position: relative;
  text-align: center;
}

.hero-visual .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.35;
  z-index: 0;
}

.blob-1 {
  width: 280px;
  height: 280px;
  background: var(--purple-light);
  top: -20px;
  right: 10%;
}

.blob-2 {
  width: 200px;
  height: 200px;
  background: var(--cyan-bright);
  bottom: 0;
  left: 5%;
}

.hero-card {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 380px;
  margin: 0 auto;
}

/* Partners */
.partners {
  padding: 2.5rem 0;
  background: var(--white);
  border-bottom: 1px solid #eee;
}

.partners-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  opacity: 0.65;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--white);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

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

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.icon-box.cyan {
  background: rgba(46, 196, 198, 0.15);
  color: var(--cyan);
}

.icon-box.orange {
  background: rgba(251, 146, 60, 0.15);
  color: #ea580c;
}

.icon-box.green {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.icon-box.purple {
  background: rgba(107, 93, 211, 0.15);
  color: var(--purple-light);
}

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

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split.contact-split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.contact-content {
  min-width: 0;
}

.contact-hero-img {
  width: 100%;
  margin-top: 1.5rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.contact-form-wrap {
  max-width: none;
  width: 100%;
  margin: 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

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

.stat-item strong {
  display: block;
  font-size: 1.75rem;
  color: var(--purple-deep);
}

.stat-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.25rem 0;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.1rem 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--purple-deep);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item.active {
  background: var(--bg-pale);
  border-radius: var(--radius);
  padding: 0 1.25rem;
  margin-bottom: 0.5rem;
  border: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  color: var(--text-muted);
  padding: 0;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding-bottom: 1.25rem;
}

/* CTA banner */
.cta-banner {
  background: var(--gradient-cta);
  border-radius: var(--radius);
  padding: 3rem;
  color: var(--white);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
  overflow: hidden;
  position: relative;
}

.cta-banner h2,
.cta-banner p {
  color: var(--white);
}

.cta-banner img {
  border-radius: 20px;
  max-width: 280px;
  margin-left: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* Blog list */
.news-list article {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e5e7eb;
  align-items: center;
}

.news-list img {
  border-radius: 12px;
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.news-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Page hero */
.page-hero {
  background: var(--gradient-hero);
  padding: 3.5rem 0;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.breadcrumb a {
  color: var(--purple-mid);
}

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

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

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

.team-card .team-info {
  padding: 1.5rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
}

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

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

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.price-card li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

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

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  line-height: 1;
  color: var(--cyan);
  opacity: 0.4;
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

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

/* Forms */
.form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--purple-deep);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(46, 196, 198, 0.2);
}

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

.form-error {
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 0.35rem;
  display: none;
}

.form-group.has-error .form-error {
  display: block;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.checkbox-group input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  min-width: 1.125rem;
  margin-top: 0.2rem;
  accent-color: var(--purple-mid);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-group label {
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-group .form-error {
  flex-basis: 100%;
  margin-left: 1.9rem;
}

.checkbox-group.has-error .form-error {
  display: block;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  background: rgba(46, 196, 198, 0.12);
  border-radius: var(--radius);
  color: var(--purple-deep);
  font-weight: 600;
  font-size: 1.1rem;
}

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

.form-body.hidden {
  display: none;
}

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

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

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

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

.legal-content ul {
  margin: 0 0 1rem 1.25rem;
}

/* Projects */
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

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

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

/* Footer */
.site-footer {
  background: var(--footer);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 0;
  margin-top: 3rem;
}

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

.site-footer a:hover {
  color: var(--cyan);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-about p {
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 1rem 0 1.5rem;
}

.footer-about img {
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.social-row {
  display: flex;
  gap: 0.65rem;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.social-row a:hover {
  background: var(--cyan);
  color: var(--footer);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

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

.footer-col li {
  margin-bottom: 0.55rem;
}

.footer-col li a {
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

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

  .hero .container,
  .split,
  .cta-banner {
    grid-template-columns: 1fr;
  }

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

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

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

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-top: 1px solid #eee;
  }

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

  .header-cta {
    display: none;
  }

  .main-nav.open + .header-cta,
  .site-header .header-cta.mobile-show {
    display: inline-flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .news-list article {
    grid-template-columns: 1fr;
  }

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

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