/* Houston Shield Insurance — Mexlife-inspired theme */
:root {
  --teal: #008b94;
  --teal-dark: #006d74;
  --navy: #001d35;
  --navy-light: #0a2d4a;
  --orange: #ff5e3a;
  --orange-dark: #e04e2e;
  --beige: #f9f7f4;
  --white: #ffffff;
  --text: #5a6570;
  --text-dark: #1a2b3c;
  --border: #e2e6ea;
  --radius: 6px;
  --shadow: 0 8px 30px rgba(0, 29, 53, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

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

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

a:hover {
  color: var(--teal-dark);
}

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

p {
  margin: 0 0 1rem;
}

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

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

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

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

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

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

.top-contact {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-social {
  display: flex;
  gap: 10px;
}

.top-social a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 14px;
}

/* Header */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px 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: 14px 0;
  gap: 20px;
}

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

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

.nav-toggle {
  display: none;
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 18px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
}

.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
}

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

.header-cta .btn {
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
}

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

.btn-teal:hover {
  background: var(--teal-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-orange {
  background: var(--orange);
  color: var(--white);
}

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

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

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

/* Section helpers */
.section {
  padding: 80px 0;
}

.section-beige {
  background: var(--beige);
}

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

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

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-header .eyebrow {
  display: block;
}

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: var(--navy) center/cover no-repeat;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(0, 29, 53, 0.88) 0%, rgba(0, 29, 53, 0.55) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

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

.hero p {
  font-size: 1.1rem;
  max-width: 560px;
  opacity: 0.92;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Two column */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split-reverse {
  direction: rtl;
}

.split-reverse > * {
  direction: ltr;
}

.img-round-wrap {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  width: min(100%, 420px);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 8px solid var(--white);
  box-shadow: var(--shadow);
}

.img-round-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}

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

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: 10px;
  padding: 28px 24px 32px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s;
}

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

.service-card .thumb {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 4px solid var(--beige);
}

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

.service-card h3 {
  font-size: 1.2rem;
}

.service-card .link-more {
  font-weight: 600;
  color: var(--teal);
}

/* Feature hex grid on navy */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  color: var(--text);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: rgba(0, 139, 148, 0.12);
  color: var(--teal);
}

.feature-icon.orange {
  background: rgba(255, 94, 58, 0.12);
  color: var(--orange);
}

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

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

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

.team-card .team-info {
  padding: 20px 16px 24px;
}

.team-card h4 {
  margin-bottom: 4px;
}

.team-card span {
  color: var(--teal);
  font-size: 14px;
  font-weight: 600;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.team-social a {
  width: 34px;
  height: 34px;
  background: var(--beige);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 14px;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l5 10h10l-8 8 3 12-10-6-10 6 3-12-8-8h10z' fill='%23ffffff' fill-opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.cta-banner .container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0;
}

.cta-banner .btn {
  background: var(--white);
  color: var(--teal);
}

.cta-banner .btn:hover {
  background: var(--beige);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}

.blog-feature {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 380px;
}

.blog-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 380px;
}

.blog-feature .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  background: linear-gradient(transparent, rgba(0, 29, 53, 0.92));
  color: var(--white);
}

.blog-feature h3 {
  color: var(--white);
}

.tag {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.blog-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-mini {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-mini img {
  height: 100%;
  min-height: 120px;
  object-fit: cover;
}

.blog-mini .content {
  padding: 16px 16px 16px 0;
}

/* Quote calculator */
.quote-section {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  padding: 80px 0;
}

.quote-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.quote-form-box {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.quote-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
}

.quote-tab.active {
  background: var(--teal);
}

.quote-panel {
  display: none;
}

.quote-panel.active {
  display: block;
}

.quote-section h2 {
  color: var(--white);
}

.quote-section img.side-img {
  border-radius: 12px;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* Partners */
.partners {
  padding: 50px 0;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0.65;
  filter: grayscale(1);
}

.partner-logos span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 1px;
}

/* Testimonial block */
.testimonial-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.testimonial-bubble {
  background: var(--white);
  padding: 36px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-bubble::before {
  content: "\201C";
  font-size: 4rem;
  color: var(--teal);
  line-height: 1;
  position: absolute;
  top: 12px;
  left: 24px;
  opacity: 0.3;
}

.stars {
  color: var(--orange);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

/* Page banner */
.page-banner {
  background: var(--navy);
  padding: 70px 0 60px;
  text-align: center;
  color: var(--white);
}

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

.breadcrumb {
  font-size: 14px;
  opacity: 0.85;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  font-size: 14px;
}

.form-group label .req {
  color: var(--orange);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  background: var(--white);
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 139, 148, 0.15);
}

.form-control.error {
  border-color: var(--orange);
}

.field-error {
  color: var(--orange);
  font-size: 13px;
  margin-top: 4px;
  display: none;
}

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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--teal);
  cursor: pointer;
}

.checkbox-group label {
  margin: 0;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  cursor: pointer;
}

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

.form-success {
  display: none;
  background: rgba(0, 139, 148, 0.12);
  border: 1px solid var(--teal);
  color: var(--navy);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 600;
}

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

.quote-section .form-control {
  background: var(--white);
}

.quote-section .form-group label {
  color: rgba(255, 255, 255, 0.95);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.price-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--teal);
}

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

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

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

.price-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  padding-left: 28px;
  position: relative;
}

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

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

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

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

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 36px;
  padding-bottom: 48px;
}

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

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

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

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
}

.footer-newsletter {
  display: flex;
  gap: 0;
  margin-top: 12px;
}

.footer-newsletter input {
  flex: 1;
  border: none;
  padding: 12px 14px;
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: inherit;
}

.footer-newsletter button {
  border: none;
  background: var(--teal);
  color: var(--white);
  padding: 0 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  font-weight: 700;
}

.footer-contact-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  font-size: 14px;
}

.site-footer .field-error {
  color: #ffb59e;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  text-align: center;
  font-size: 14px;
}

.footer-legal-inline a {
  margin: 0 8px;
}

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

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

.project-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.project-card .proj-body {
  padding: 20px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info-block {
  background: var(--beige);
  padding: 36px;
  border-radius: 12px;
}

.contact-info-block .icon-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-info-block .icon {
  width: 48px;
  height: 48px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .card-grid,
  .feature-grid,
  .team-grid,
  .pricing-grid,
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 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);
    box-shadow: var(--shadow);
    padding: 16px;
  }

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

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

  .header-cta {
    display: none;
  }

  .split,
  .quote-wrap,
  .blog-grid,
  .testimonial-split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .feature-grid,
  .team-grid,
  .pricing-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

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

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

  .blog-mini {
    grid-template-columns: 1fr;
  }

  .blog-mini img {
    min-height: 180px;
  }

  .section {
    padding: 56px 0;
  }
}
