/* DeepTi Insure — Mexlife-inspired theme */
:root {
  --navy: #002B3D;
  --navy-dark: #001f2d;
  --green: #28A745;
  --green-hover: #218838;
  --green-light: #e8f5ec;
  --white: #ffffff;
  --grey-100: #f5f7f8;
  --grey-200: #e9ecef;
  --grey-500: #6c757d;
  --grey-700: #495057;
  --shadow: 0 8px 30px rgba(0, 43, 61, 0.1);
  --radius: 8px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--grey-700);
  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;
}

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

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

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

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

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

.top-bar a {
  color: rgba(255, 255, 255, 0.9);
}

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

.top-social {
  display: flex;
  gap: 0.75rem;
}

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

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

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

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.25rem;
}

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

.main-nav a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
}

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

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

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

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

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

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

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

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

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--grey-100) 0%, #fff 50%, var(--green-light) 100%);
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 0L0 60' stroke='%23002B3D' stroke-opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero-lead {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 32rem;
}

.hero-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
}

.hero-card {
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.hero-card .icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 1.1rem;
  font-weight: 700;
}

.hero-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.hero-card p {
  font-size: 0.85rem;
  margin: 0;
}

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

.section-grey {
  background: var(--grey-100);
}

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

.section-title .label {
  color: var(--green);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

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

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

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-images img {
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  object-fit: cover;
  width: 100%;
  aspect-ratio: 1;
}

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

.check-list li {
  padding: 0.4rem 0 0.4rem 1.75rem;
  position: relative;
}

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

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-box {
  background: var(--green);
  color: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  min-width: 140px;
}

.stat-box strong {
  display: block;
  font-size: 1.35rem;
}

.stat-box span {
  font-size: 0.8rem;
  opacity: 0.95;
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

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

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

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

.service-card .body {
  padding: 1.25rem;
  text-align: center;
}

.service-card .icon {
  width: 56px;
  height: 56px;
  margin: -28px auto 0.75rem;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 4px solid var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.read-more {
  font-weight: 600;
  font-size: 0.9rem;
}

/* CTA band */
.cta-band {
  background: var(--green);
  color: var(--white);
  padding: 2.5rem 0;
}

.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 {
  color: var(--white);
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* Why choose */
.why-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  align-items: stretch;
}

.why-content {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  padding: 3rem;
  border-radius: var(--radius) 0 0 var(--radius);
}

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

.why-image {
  border-radius: 0 var(--radius) var(--radius) 0;
  overflow: hidden;
  min-height: 320px;
}

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

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 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 h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

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

/* Stats band */
.stats-band {
  background: var(--green);
  color: var(--white);
  padding: 2.5rem 0;
}

.stats-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stats-band-grid strong {
  display: block;
  font-size: 1.75rem;
}

/* Quote form section */
.quote-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.quote-form-wrap {
  padding: 2.5rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--green);
  border-color: var(--green);
}

.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.visible {
  display: block;
}

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

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

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

.form-success {
  display: none;
  background: var(--green-light);
  border: 1px solid var(--green);
  color: var(--navy);
  padding: 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
}

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

/* Testimonials */
.testimonials-header {
  background: var(--navy);
  padding: 3rem 0 5rem;
  text-align: center;
}

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

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
  padding-bottom: 2rem;
}

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

.testimonial-card .quote {
  color: var(--green);
  font-size: 2rem;
  line-height: 1;
}

/* Partners */
.partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0.65;
  filter: grayscale(100%);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

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

.blog-card .thumb {
  height: 200px;
}

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

.blog-card .body {
  padding: 1.25rem;
}

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

/* Page header */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

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

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

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

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

.price-card {
  background: var(--white);
  border: 2px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

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

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

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

.price-card li {
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
}

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

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 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 .body {
  padding: 1.25rem;
}

/* 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;
}

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

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

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

.footer-about p {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.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: #fff;
  font-size: 0.8rem;
}

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

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

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

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

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

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

.footer-news .mini-news img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  object-fit: cover;
}

.footer-news .mini-news span {
  font-size: 0.85rem;
  line-height: 1.4;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer-contact-item .ico {
  color: var(--green);
  flex-shrink: 0;
}

.footer-bottom {
  background: #1a5c32;
  margin-top: 2.5rem;
  padding: 1.25rem 0;
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-newsletter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-newsletter .form-success {
  flex: 1 1 100%;
  margin-top: 0.25rem;
}

.footer-newsletter input {
  padding: 0.55rem 0.85rem;
  border: none;
  border-radius: var(--radius);
  min-width: 200px;
}

.footer-legal-inline a {
  color: rgba(255, 255, 255, 0.85);
  margin-left: 1rem;
}

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

/* Responsive */
@media (max-width: 992px) {
  .hero-grid,
  .two-col,
  .why-wrap,
  .quote-section {
    grid-template-columns: 1fr;
  }

  .why-content {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .why-image {
    border-radius: 0 0 var(--radius) var(--radius);
    min-height: 240px;
  }

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

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

  .hero-cards {
    margin-top: 1.5rem;
  }
}

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

  .main-nav {
    display: none;
    width: 100%;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--navy-dark);
    padding: 1rem;
  }

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

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

  .header-inner {
    flex-wrap: wrap;
    position: relative;
  }

  .header-cta {
    width: 100%;
    order: 3;
    text-align: center;
    padding-bottom: 0.5rem;
  }

  .hero-cards {
    grid-template-columns: 1fr;
  }

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

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