/* Ideacept Insurance — Mexlife-style theme */
:root {
  --green: #8cc63f;
  --green-dark: #6fa82e;
  --navy: #001730;
  --navy-light: #0a2a4a;
  --blue: #007bff;
  --blue-dark: #0056b3;
  --white: #ffffff;
  --gray-50: #f5f7fa;
  --gray-100: #eef1f5;
  --gray-300: #c8d0d9;
  --gray-600: #5c6b7a;
  --text: #334155;
  --shadow: 0 10px 40px rgba(0, 23, 48, 0.08);
  --radius: 6px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, 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;
}

.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;
}

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

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

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

p {
  margin: 0 0 1rem;
}

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

.accent {
  color: var(--green);
}

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

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-bar .social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.top-bar .social a {
  color: rgba(255, 255, 255, 0.75);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
}

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

.top-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

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

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  min-width: 10.5rem;
  text-decoration: none;
}

.logo-mark {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: block;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.logo-tag {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.18em;
}

@media (max-width: 480px) {
  .logo-wordmark {
    display: none;
  }

  .logo {
    min-width: auto;
  }
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
  align-items: center;
}

.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  position: relative;
}

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

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

.search-btn {
  background: none;
  border: none;
  color: var(--navy);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.35rem;
}

.nav-toggle {
  display: none;
  background: var(--green);
  border: none;
  color: var(--white);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
  text-align: center;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-1px);
}

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

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

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

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

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

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

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

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

.btn-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 23, 48, 0.88) 0%, rgba(0, 23, 48, 0.45) 55%, rgba(0, 23, 48, 0.25) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.15rem);
  max-width: 640px;
  margin-bottom: 1rem;
}

.hero p.lead {
  font-size: 1.1rem;
  max-width: 520px;
  opacity: 0.92;
  margin-bottom: 1.75rem;
}

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

.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.hero-dots button.active {
  background: var(--green);
  border-color: var(--green);
}

/* Section */
.section {
  padding: 4.5rem 0;
}

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

.section-navy {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
}

.section-navy h2,
.section-navy h3 {
  color: var(--white);
}

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

.section-title .sub {
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 0.35rem;
}

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

/* Process steps */
.process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-item {
  text-align: center;
  position: relative;
}

.process-item img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--gray-100);
}

.process-item .num {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(40px);
  background: var(--green);
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.process-item h4 {
  font-size: 1.05rem;
}

/* Two column */
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.check-list li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.65rem;
}

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

.stats-grid {
  display: grid;
  gap: 1.25rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 123, 255, 0.12);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

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

.about-img-wrap {
  position: relative;
}

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

.about-img-wrap .inset {
  position: absolute;
  bottom: -20px;
  right: -10px;
  width: 45%;
  border: 6px solid var(--white);
  border-radius: var(--radius);
}

/* Service cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.service-card {
  background: var(--navy-light);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s;
}

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

.service-card .thumb {
  height: 100px;
  overflow: hidden;
}

.service-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card .body {
  padding: 1.25rem 1rem 1.5rem;
}

.service-card .icon {
  width: 48px;
  height: 48px;
  margin: -24px auto 0.75rem;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  position: relative;
  z-index: 1;
}

.service-card h4 {
  color: var(--white);
  font-size: 1rem;
}

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

/* Mission banner */
.mission-banner {
  background: var(--green);
  color: var(--white);
  padding: 0;
}

.mission-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: stretch;
  gap: 0;
}

.mission-text {
  padding: 3rem 2rem 3rem 0;
}

.mission-text h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

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

/* Testimonials */
.testimonial-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonial {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.testimonial img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial .quote {
  position: relative;
  flex: 1;
}

.testimonial .quote::before {
  content: """;
  font-size: 3rem;
  color: var(--green);
  line-height: 1;
  position: absolute;
  left: -0.25rem;
  top: -0.5rem;
  opacity: 0.35;
}

/* Pricing */
.pricing-toggle {
  text-align: center;
  margin-bottom: 2rem;
}

.toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.switch {
  position: relative;
  width: 52px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--gray-300);
  border-radius: 999px;
  transition: 0.3s;
}

.slider::before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: 0.3s;
}

.switch input:checked + .slider {
  background: var(--green);
}

.switch input:checked + .slider::before {
  transform: translateX(24px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  border: 2px solid transparent;
}

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

.ribbon {
  position: absolute;
  top: 12px;
  right: -8px;
  background: var(--green);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  text-transform: uppercase;
}

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

.price-card .amount small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-600);
}

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

.price-features li {
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--gray-100);
  font-size: 0.92rem;
}

/* Quote section */
.quote-section .layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.insurance-types {
  list-style: none;
  padding: 0;
  margin: 0;
}

.insurance-types li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  border: 2px solid transparent;
}

.insurance-types li.active,
.insurance-types li:hover {
  border-color: var(--green);
}

.insurance-types .ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 123, 255, 0.12);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-form-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: end;
}

.quote-illustration {
  max-width: 200px;
  align-self: center;
}

/* Forms */
.form-group {
  margin-bottom: 1.15rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  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(--green);
  box-shadow: 0 0 0 3px rgba(140, 198, 63, 0.2);
}

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

.field-error {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}

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

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

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

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

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

.form-success {
  display: none;
  padding: 1.25rem;
  background: rgba(140, 198, 63, 0.15);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  color: var(--navy);
  font-weight: 600;
  margin-top: 1rem;
}

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

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

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

.blog-card .meta {
  padding: 1rem 1.25rem 0;
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 600;
}

.blog-card .content {
  padding: 0.75rem 1.25rem 1.5rem;
}

.blog-card h4 {
  font-size: 1.05rem;
}

/* Page banner */
.page-banner {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(140, 198, 63, 0.15), transparent);
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

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

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

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

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

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

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

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

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.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 .content {
  padding: 1.25rem;
}

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

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

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

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

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

.site-footer .logo-foot {
  height: 42px;
  margin-bottom: 1rem;
}

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

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

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

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

.news-mini {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

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

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

.subscribe-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.subscribe-form input {
  flex: 1;
  min-width: 160px;
  padding: 0.65rem 0.85rem;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.85rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

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

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

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

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

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

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

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .main-nav.open {
    max-height: 480px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    align-items: stretch;
  }

  .row-2,
  .mission-inner,
  .quote-section .layout,
  .quote-form-wrap,
  .pricing-grid,
  .blog-grid,
  .project-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .header-actions .btn-sm {
    display: none;
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .process-row,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .top-contact {
    display: none;
  }
}