/* Cepbey Insurance - Mexlife-inspired theme */
:root {
  --navy: #001730;
  --navy-dark: #000d1a;
  --royal: #0056b3;
  --royal-light: #1a75e8;
  --royal-bright: #007bff;
  --white: #ffffff;
  --off-white: #f5f7fa;
  --grey-100: #f0f2f5;
  --grey-200: #e4e7eb;
  --grey-500: #6b7280;
  --grey-700: #374151;
  --text: #333333;
  --shadow: 0 10px 40px rgba(0, 23, 48, 0.12);
  --radius: 4px;
  --font: "Poppins", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--royal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--royal-light);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}

p {
  margin: 0 0 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 90px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title .sub {
  display: block;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--royal);
  margin-bottom: 8px;
}

.section-title h2 {
  font-size: clamp(28px, 4vw, 38px);
}

.section-title p {
  max-width: 640px;
  margin: 12px auto 0;
  color: var(--grey-500);
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}

.btn-primary {
  background: var(--royal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--royal-light);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 86, 179, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

/* Top bar */
.top-bar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 10px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.85);
}

.top-bar a:hover {
  color: var(--white);
}

.top-bar .top-email {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-icons {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 14px;
}

.social-icons a:hover {
  background: var(--royal);
}

/* 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: 18px 0;
  gap: 24px;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-main a {
  color: var(--navy);
  font-weight: 500;
  font-size: 15px;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--royal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  margin: 6px 0;
  transition: 0.3s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 23, 48, 0.92) 0%, rgba(0, 23, 48, 0.55) 55%, rgba(0, 23, 48, 0.25) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
}

.hero-content {
  max-width: 620px;
}

.hero .tag {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--royal-bright);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 8px;
}

.hero h1 span {
  color: var(--royal-bright);
  display: block;
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  margin-bottom: 28px;
}

/* About block */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-stats {
  display: flex;
  gap: 30px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.stat-box h3 {
  font-size: 36px;
  color: var(--royal);
  margin-bottom: 4px;
}

.stat-box p {
  font-size: 14px;
  color: var(--grey-500);
  margin: 0;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  background: var(--royal);
  border-radius: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.floating-card {
  position: absolute;
  bottom: -20px;
  right: -10px;
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 260px;
  font-size: 14px;
}

.floating-card .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

/* Services */
.services-section {
  background: var(--off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.service-card {
  background: var(--white);
  padding: 40px 28px;
  text-align: center;
  border: 1px solid var(--grey-200);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card.featured {
  background: var(--royal);
  color: var(--white);
  transform: scale(1.02);
  z-index: 1;
  box-shadow: var(--shadow);
}

.service-card.featured h3,
.service-card.featured p,
.service-card.featured a {
  color: var(--white);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(0, 86, 179, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card.featured .service-icon {
  background: rgba(255, 255, 255, 0.2);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--royal);
}

.service-card.featured .service-icon svg {
  fill: var(--white);
}

.service-card h3 {
  font-size: 18px;
}

.service-card .read-more {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  margin-top: 16px;
  display: inline-block;
}

/* CTA banner */
.cta-banner {
  position: relative;
  padding: 100px 0;
  text-align: center;
  color: var(--white);
  background: var(--navy);
}

.cta-banner .cta-bg {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-size: cover;
  background-position: center;
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(26px, 4vw, 36px);
  margin-bottom: 16px;
}

.cta-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  fill: var(--royal-bright);
}

/* Why choose */
.why-section {
  position: relative;
}

.why-image {
  margin-bottom: 24px;
}

.why-image img {
  width: 100%;
  border-radius: var(--radius);
  max-height: 480px;
  object-fit: cover;
}

.feature-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: -60px;
  position: relative;
  z-index: 2;
}

.feature-bar {
  padding: 32px 28px;
  color: var(--white);
  text-align: center;
}

.feature-bar:nth-child(1) {
  background: var(--navy);
}

.feature-bar:nth-child(2) {
  background: var(--royal);
}

.feature-bar:nth-child(3) {
  background: var(--navy-dark);
}

.feature-bar h4 {
  color: var(--white);
  margin-bottom: 8px;
}

.feature-bar p {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
}

/* Process */
.process-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.process-hex {
  text-align: center;
  flex: 0 1 220px;
}

.process-hex .hex-frame {
  width: 180px;
  height: 200px;
  margin: 0 auto 16px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  overflow: hidden;
  border: 4px solid var(--royal);
}

.process-hex img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-step-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--royal);
}

/* Quote form section */
.quote-section {
  background: var(--off-white);
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.quote-form-box {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quote-image img {
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--royal);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #dc3545;
}

.form-error {
  color: #dc3545;
  font-size: 12px;
  margin-top: 6px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.checkbox-group .form-error {
  flex-basis: 100%;
  margin-left: 30px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 3px 0 0 0;
  flex-shrink: 0;
  accent-color: var(--royal);
  cursor: pointer;
}

.checkbox-group label {
  margin: 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  flex: 1;
}

.form-success {
  display: none;
  padding: 20px;
  background: #d4edda;
  color: #155724;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 500;
  margin-top: 16px;
}

.form-success.visible {
  display: block;
}

/* Testimonials */
.testimonial-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.testimonial-box {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.quote-icon {
  width: 48px;
  height: 48px;
  fill: var(--royal);
  margin-bottom: 16px;
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s;
}

.blog-card:hover {
  transform: translateY(-6px);
}

.blog-card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.blog-card .card-body {
  padding: 24px;
}

.blog-card .date {
  font-size: 13px;
  color: var(--royal);
  font-weight: 500;
}

/* Page header */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #002a5c 100%);
  padding: 80px 0 60px;
  text-align: center;
  color: var(--white);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(32px, 5vw, 42px);
}

.breadcrumb {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb li::after {
  content: "/";
  margin-left: 8px;
  opacity: 0.5;
}

.breadcrumb li:last-child::after {
  display: none;
}

.breadcrumb li:last-child {
  color: var(--royal-bright);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.team-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.team-card .info {
  padding: 24px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.pricing-card.popular {
  border-color: var(--royal);
  box-shadow: var(--shadow);
  transform: scale(1.03);
}

.pricing-card .price {
  font-size: 42px;
  font-weight: 700;
  color: var(--royal);
}

.pricing-card .price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--grey-500);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  text-align: left;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-100);
  font-size: 14px;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0, 23, 48, 0.9));
  color: var(--white);
}

.project-overlay h3 {
  color: var(--white);
  font-size: 18px;
}

/* Legal content */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 22px;
  margin-top: 40px;
}

.legal-content h3 {
  font-size: 18px;
  margin-top: 28px;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 24px;
}

.footer-grid p,
.footer-grid li {
  font-size: 14px;
  line-height: 1.8;
}

.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(--white);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
}

.footer-social a:hover {
  background: var(--royal);
}

.newsletter-form {
  display: flex;
  gap: 0;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: var(--font);
}

.newsletter-form button {
  padding: 12px 18px;
  background: var(--royal);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--white);
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.7);
}

.opening-hours dt {
  font-weight: 600;
  color: var(--white);
  margin-top: 12px;
}

.opening-hours dd {
  margin: 4px 0 0 0;
}

/* Utilities */
.bg-light {
  background: var(--off-white);
}

.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid,
  .projects-grid,
  .blog-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
  }

  .nav-main.open {
    display: flex;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .about-grid,
  .quote-grid,
  .testimonial-split {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .feature-bars,
  .team-grid,
  .projects-grid,
  .blog-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .service-card.featured {
    transform: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .floating-card {
    position: static;
    margin-top: 20px;
    max-width: 100%;
  }

  .feature-bars {
    margin-top: 30px;
  }
}