/* Windsor Insurance — Mexlife-inspired theme */
:root {
  --navy: #002147;
  --navy-deep: #00152e;
  --royal: #007bff;
  --royal-dark: #0056b3;
  --accent-green: #28a745;
  --white: #ffffff;
  --gray-50: #f5f7fa;
  --gray-100: #e8ecf1;
  --gray-600: #5c6b7a;
  --gray-800: #2d3748;
  --shadow: 0 10px 40px rgba(0, 33, 71, 0.12);
  --radius: 6px;
  --font: "Poppins", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-800);
  line-height: 1.7;
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--royal);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: var(--royal-dark);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  line-height: 1.3;
  margin-top: 0;
}

.container {
  width: min(1170px, 92%);
  margin: 0 auto;
}

/* 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;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.9);
}

.top-bar a:hover {
  color: var(--white);
}

.top-bar__left,
.top-bar__right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.top-bar__social {
  display: flex;
  gap: 12px;
}

.top-bar__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;
}

/* Main header */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
  flex-wrap: nowrap;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo img.logo-mark {
  width: 48px;
  height: 48px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-size: 1.35rem;
  color: var(--navy);
  font-weight: 700;
}

.logo-text span {
  font-size: 0.7rem;
  color: var(--royal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: var(--royal);
  border: none;
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
}

.main-nav a {
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 7px;
  border-radius: var(--radius);
  white-space: nowrap;
}

.header-quote-btn {
  flex-shrink: 0;
  padding: 12px 22px;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--royal);
  background: rgba(0, 123, 255, 0.08);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--royal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--royal-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.35);
}

.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-deep);
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(0, 33, 71, 0.92) 0%, rgba(0, 33, 71, 0.55) 55%, rgba(0, 33, 71, 0.15) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-green);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  max-width: 620px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  font-size: 1.05rem;
  margin-bottom: 28px;
}

/* Page banner */
.page-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #003366 100%);
  padding: 70px 0;
  text-align: center;
}

.page-banner h1 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section--gray {
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.tag,
.section-header .tag {
  color: var(--royal);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin: 10px 0 16px;
}

.section-header p {
  color: var(--gray-600);
  margin: 0;
}

/* About block */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  min-height: 380px;
  object-fit: cover;
}

.mission-card {
  position: absolute;
  bottom: -30px;
  right: -20px;
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 300px;
  border-left: 4px solid var(--royal);
}

.mission-card h4 {
  margin-bottom: 12px;
  color: var(--navy);
}

.mission-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 0.9rem;
}

.mission-card li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
}

.mission-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--royal);
  font-weight: 700;
}

.stats-row {
  display: flex;
  gap: 30px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.stat-box {
  flex: 1;
  min-width: 140px;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border-bottom: 3px solid var(--royal);
}

.stat-box strong {
  display: block;
  font-size: 1.75rem;
  color: var(--royal);
}

.stat-box span {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  padding: 36px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
  border: 1px solid var(--gray-100);
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-card--featured {
  background: var(--royal);
  color: var(--white);
  border-color: var(--royal);
}

.service-card--featured h3,
.service-card--featured p,
.service-card--featured a {
  color: var(--white);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(0, 123, 255, 0.12);
  color: var(--royal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 20px;
}

.service-card--featured .service-icon {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.service-card--featured p {
  color: rgba(255, 255, 255, 0.9);
}

/* CTA parallax */
.cta-band {
  position: relative;
  padding: 100px 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 123, 255, 0.85);
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 700px;
  margin: 0 auto;
}

/* Why choose */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.why-feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--royal);
  color: var(--white);
  padding: 18px 22px;
  border-radius: var(--radius);
}

.why-feature-item .num {
  font-size: 1.5rem;
  font-weight: 700;
  opacity: 0.5;
}

/* Process */
.process-steps {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
}

.process-step {
  text-align: center;
  max-width: 280px;
}

.process-hex {
  width: 180px;
  height: 200px;
  margin: 0 auto 20px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  overflow: hidden;
  background: var(--royal);
  padding: 4px;
}

.process-hex img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.process-step .step-num {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  width: 48px;
  height: 48px;
  line-height: 48px;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Quote section */
.quote-section {
  background: var(--gray-50);
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.quote-form-card {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.form-tab {
  padding: 10px 18px;
  border: 1px solid var(--gray-100);
  background: var(--gray-50);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font);
  font-weight: 500;
  color: var(--navy);
}

.form-tab.active {
  background: var(--royal);
  color: var(--white);
  border-color: var(--royal);
}

.quote-image img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  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(--royal);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #dc3545;
}

.field-error {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.field-error.visible {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkbox-group {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 6px;
  align-items: start;
  margin-bottom: 18px;
}

.checkbox-group input[type="checkbox"] {
  grid-column: 1;
  grid-row: 1;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 2px 0 0;
  accent-color: var(--royal);
  cursor: pointer;
  justify-self: start;
}

.checkbox-group label {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.55;
  cursor: pointer;
  margin: 0;
  font-weight: 400;
}

.checkbox-group .field-error {
  grid-column: 2;
  grid-row: 2;
  margin-top: 0;
  padding-left: 0;
}

.form-success {
  display: none;
  background: rgba(40, 167, 69, 0.12);
  border: 1px solid var(--accent-green);
  color: #1e5631;
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  margin-top: 16px;
}

.form-success.visible {
  display: block;
}

/* Testimonials */
.testimonial-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.testimonial-bubble {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-bubble::before {
  content: "\201C";
  font-size: 4rem;
  color: var(--royal);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.stars {
  color: #ffc107;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--royal);
}

/* Blog / project cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}

.article-card:hover {
  transform: translateY(-4px);
}

.article-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.article-card__body {
  padding: 22px;
}

.article-card .date {
  color: var(--royal);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.team-member {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.team-member img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.team-member__info {
  padding: 20px;
}

.team-member__info h4 {
  margin-bottom: 4px;
}

.team-member__info span {
  color: var(--royal);
  font-size: 0.85rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.pricing-card--featured {
  background: var(--navy);
  color: var(--white);
  transform: scale(1.03);
  border-color: var(--navy);
}

.pricing-card--featured h3,
.pricing-card--featured .price,
.pricing-card--featured li {
  color: var(--white);
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--royal);
  margin: 16px 0;
}

.pricing-card--featured .price {
  color: var(--white);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  text-align: left;
}

.pricing-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
}

.pricing-card--featured li {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Newsletter bar */
.newsletter-bar {
  background: var(--royal);
  padding: 40px 0;
}

.newsletter-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.newsletter-bar h3 {
  color: var(--white);
  margin: 0;
  font-size: 1.35rem;
}

.newsletter-form {
  display: flex;
  gap: 0;
  flex: 1;
  max-width: 480px;
  flex-wrap: wrap;
  align-items: stretch;
}

.newsletter-form .form-success {
  flex: 0 0 100%;
  margin-top: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: var(--font);
}

.newsletter-form button {
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 24px;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.site-footer h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 10px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-about p {
  font-size: 0.9rem;
  margin: 16px 0;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social 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;
  transition: background 0.2s;
}

.footer-social a:hover {
  background: var(--royal);
}

.footer-bottom {
  background: #000c1a;
  padding: 18px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Legal / long content */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 28px;
}

.legal-content p,
.legal-content li {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.legal-content ul {
  margin-bottom: 20px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info-card {
  background: var(--navy);
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius);
}

.contact-info-card h3 {
  color: var(--white);
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-info-item .icon {
  width: 48px;
  height: 48px;
  background: var(--royal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-40 { margin-bottom: 40px; }

img.content-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

/* Responsive */
@media (max-width: 1280px) and (min-width: 769px) {
  .main-nav a {
    font-size: 0.75rem;
    padding: 8px 5px;
  }

  .header-quote-btn {
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  .logo-text strong {
    font-size: 1.15rem;
  }
}

@media (max-width: 1024px) {
  .services-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-grid,
  .card-grid,
  .testimonial-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);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .site-header .container {
    position: relative;
    flex-wrap: nowrap;
  }

  .header-row {
    position: static;
    flex: 0 1 auto;
    gap: 8px;
  }

  .main-nav.open {
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .header-quote-btn {
    padding: 10px 14px;
    font-size: 0.75rem;
  }

  .about-grid,
  .why-grid,
  .quote-grid,
  .testimonial-block,
  .contact-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .team-grid,
  .pricing-grid,
  .card-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .mission-card {
    position: static;
    margin-top: 20px;
    max-width: 100%;
  }

  .pricing-card--featured {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
    max-width: 100%;
  }

  .newsletter-form input,
  .newsletter-form button {
    border-radius: var(--radius);
    width: 100%;
  }

  .cta-band {
    background-attachment: scroll;
  }
}