/* === Base Layout === */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f8f8f8;
  color: #111;
}
a {
  text-decoration: none;
  color: inherit;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

/* === Header === */
.site-header {
  background: #1a2238;
  color: #fff;
  padding: 1rem;
  position: relative;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-logo a {
  display: inline-block;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.005em;
  color: #fff;
  white-space: nowrap;
  position: relative;
  top: 1px;
}

.site-logo .logo-light {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.87);
}

@media (max-width: 1000px) {
  .site-logo a {
    font-size: 1.3rem;
  }
}

@media (max-width: 430px) {
  .site-logo a {
    font-size: 1.05rem;
    line-height: 1.2;
    white-space: normal;
    max-width: 220px;
    top: 0;
  }
}

/* === Desktop Nav === */
.desktop-nav {
  display: flex;
  align-items: center;
}

.desktop-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}


.desktop-nav a {
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  position: relative;
  line-height: 1;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: #fff;
  transition: width 0.3s ease;
}

.desktop-nav a:hover {
  color: #f0f0f0;
}

.desktop-nav a:hover::after {
  width: 100%;
}

/* Align nav label and chevron on a shared centre line */
.desktop-nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.desktop-nav .has-dropdown > a i {
  font-size: 0.72rem;
  line-height: 1;
  flex-shrink: 0;
  position: relative;
  top: 2px;
  transition: transform 0.3s ease;
}

/* Desktop Dropdown */
.desktop-nav .has-dropdown {
  position: relative;
}

.desktop-nav .has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%; 
  left: 0;
  background: #1a2238; 
  color: #fff;
  padding: 0.5rem 0;
  list-style: none;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  z-index: 999;
  border-radius: 4px;
}

.desktop-nav .has-dropdown:hover .dropdown {
  display: block;
}

.desktop-nav .has-dropdown .dropdown li {
  padding: 0;
  margin: 0;
}

.desktop-nav .has-dropdown .dropdown li a {
  color: #fff;
  font-weight: 500;
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease;
}

.desktop-nav .has-dropdown .dropdown li a:hover {
  background: #2a2f4a; /* subtle hover shade */
  color: #fff;
}

.desktop-nav .has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.desktop-nav .has-dropdown:hover > a i {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.header-phone {
  margin-left: 1rem;
  display: flex;
  align-items: center;
  background-color: #fff;
  padding: 5px 10px;
  border-radius: 8px;
}

.header-phone a {
  color: #1a2238;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.header-phone a:hover {
  color: #1a2238;
}

.header-phone i {
  font-size: 1rem;
  color: #1a2238;
}

/* === Mobile Nav (Custom Toggle System) === */
.mobile-nav {
  display: none;
}

#menuToggle {
  display: none;
}

@media (max-width: 1000px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  /* Lock page scroll while the menu is open */
  html:has(#mobileMenuToggle:checked),
  body:has(#mobileMenuToggle:checked) {
    overflow: hidden;
  }

  #menuToggle {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 20;
  }

  #menuToggle input {
    display: block;
    width: 44px;
    height: 38px;
    position: absolute;
    top: -6px;
    left: -7px;
    cursor: pointer;
    opacity: 0;
    z-index: 25;
    margin: 0;
  }

  /* Hamburger bars */
  #menuToggle > span {
    display: block;
    width: 30px;
    height: 3px;
    margin-bottom: 5px;
    background: #fff;
    border-radius: 3px;
    position: relative;
    z-index: 22;
    transform-origin: 5px 0px;
    transition: transform 0.35s cubic-bezier(0.77, 0.2, 0.05, 1),
                opacity 0.25s ease;
  }

  #menuToggle > span:first-child {
    transform-origin: 0% 0%;
  }

  #menuToggle > span:nth-last-child(2) {
    transform-origin: 0% 100%;
  }

  #menuToggle > input:checked ~ span {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  #menuToggle > input:checked ~ span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
  }

  #menuToggle > input:checked ~ span:nth-last-child(2) {
    transform: rotate(-45deg) translate(0, -1px);
  }

  #menuToggle > input:focus-visible ~ span {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6);
  }

  /* Backdrop */
  .menu-scrim {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 26, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 18;
    cursor: default;
  }

  #menuToggle input:checked ~ .menu-scrim {
    opacity: 1;
    visibility: visible;
  }

  /* Panel */
  #menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 90vw;
    max-width: 380px;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0;
    background: #fff;
    box-shadow: -8px 0 32px rgba(10, 14, 26, 0.22);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 19;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  #menuToggle input:checked ~ #menu {
    transform: translateX(0);
  }

  /* Minimal reset: element-level only, never overrides .mm-* classes */
  #menu *,
  #menu *::before,
  #menu *::after {
    box-sizing: border-box;
  }

  #menu ul {
    list-style: none;
  }

  /* Top bar: home button sits opposite the X */
  #menu .mm-top {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: 58px;
    margin: 0;
    padding: 0.5rem 0.9rem;
    padding-top: calc(0.5rem + env(safe-area-inset-top));
    background: #1a2238;
  }

  #menu .mm-home {
    grid-column: 1;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.05rem;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s ease;
  }

  #menu .mm-home i {
    color: #fff;
    font-size: 1.05rem;
    line-height: 1;
  }

  #menu .mm-home:active {
    background: rgba(255, 255, 255, 0.28);
  }

  #menu .mm-home:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
  }

  #menu .mm-close {
    grid-column: 3;
    justify-self: end;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  #menu .mm-close i {
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
  }

  #menu .mm-close:active {
    background: rgba(255, 255, 255, 0.18);
  }

  /* Scroll area */
  #menu .mm-body {
    flex: 1 1 auto;
    min-height: 0;
    overscroll-behavior: contain;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }

  #menu .mm-label {
    display: block;
    margin: 0;
    padding: 0.8rem 1rem 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #8a90a0;
  }

  /* Services list: one line per item, guaranteed */
  #menu .mm-services {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  #menu .mm-svc {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    line-height: 1.2;
    font-size: 0;
    list-style: none;
  }

  #menu .mm-svc-link {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0.5rem 1rem;
    line-height: 1.2;
    border: 0;
    color: #1a2238;
    text-decoration: none;
    transition: background 0.15s ease;
  }

  #menu .mm-svc-link:active {
    background: #f2f4f8;
  }

  #menu .mm-svc-ico {
    flex: 0 0 22px;
    width: 22px;
    font-size: 0.98rem;
    line-height: 1;
    text-align: center;
    color: #1a2238;
  }

  #menu .mm-svc-txt {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* Claim type image grid */
  .mm-claims {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0 1rem;
  }

  .mm-claim {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    background: #0a0e1a;
  }

  .mm-claim img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    filter: brightness(0.5);
  }

  .mm-claim-txt {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    background: rgba(10, 14, 26, 0.35);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  }

  .mm-more {
    display: block;
    width: calc(100% - 2rem);
    margin: 0.5rem 1rem 0;
    padding: 0.6rem 1rem;
    border: 1px solid #d9dde5;
    border-radius: 8px;
    color: #1a2238;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    transition: background 0.15s ease;
  }

  .mm-more:active {
    background: #f2f4f8;
  }

  /* Who We Serve grid */
  .mm-serve {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0 1rem;
  }

  .mm-serve-link {
    display: grid;
    grid-template-rows: auto auto;
    justify-items: center;
    align-content: center;
    row-gap: 0.35rem;
    width: 100%;
    min-height: 76px;
    padding: 0.6rem 0.4rem;
    border: 1px solid #e9ecf2;
    border-radius: 8px;
    background: #fafbfc;
    color: #1a2238;
    text-align: center;
    transition: background 0.15s ease, border-color 0.15s ease;
  }

  .mm-serve-link:active {
    background: #eef1f6;
    border-color: #c9cfdb;
  }

  .mm-serve-ico {
    display: block;
    font-size: 1.15rem;
    line-height: 1;
    text-align: center;
    color: #1a2238;
  }

  .mm-serve-txt {
    display: block;
    width: 100%;
    min-width: 0;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }

  /* Secondary links */
  .mm-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
    margin: 0.9rem 1rem 0;
    padding-top: 0.8rem;
    border-top: 1px solid #f0f2f6;
  }

  .mm-links a {
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 600;
  }

  .mm-links a:active {
    color: #1a2238;
  }

  /* Pinned call to action */
  #menu .mobile-call-link {
    flex-shrink: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 0.7rem 1rem;
    padding-bottom: calc(0.7rem + env(safe-area-inset-bottom));
    border-top: 1px solid #eef0f4;
    background: #fff;
  }

  #menu .mobile-call-link a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-sizing: border-box;
    width: auto;
    max-width: 100%;
    min-height: 50px;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #1a2238;
    color: #fff;
    font-weight: 700;
    font-size: 1.02rem;
    box-shadow: 0 2px 10px rgba(26, 34, 56, 0.25);
    transition: background 0.2s ease;
  }

  #menu .mobile-call-link a:active {
    background: #2a3352;
  }

  #menu .mobile-call-link a:focus-visible {
    outline: 3px solid #1a2238;
    outline-offset: 2px;
  }

  #menu .mobile-call-link i {
    font-size: 0.92rem;
  }

  #menu a:focus-visible {
    outline: 3px solid #1a2238;
    outline-offset: -3px;
  }

  /* Very short screens */
  @media (max-height: 700px) {
    #menu .mm-top {
      min-height: 50px;
    }

    #menu .mm-label {
      padding-top: 0.55rem;
    }

    #menu .mm-svc-link {
      min-height: 32px;
      padding-top: 0.22rem;
      padding-bottom: 0.22rem;
    }

    #menu .mm-serve-link {
      min-height: 68px;
    }
  }
}

@media (max-width: 1000px) and (prefers-reduced-motion: reduce) {
  #menu,
  #menuToggle > span,
  .menu-scrim {
    transition: none;
  }
}

/* === Page == */

.page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1a1a1a;
  font-weight: 600;
  text-align: center;
}

.page-content {
  line-height: 1.7;
  font-size: 1.1rem;
  color: #333;
}

.page-content h2,
.page-content h3 {
  margin-top: 2rem;
  font-weight: 600;
  color: #1a1a1a;
}

.page-content p {
  margin-bottom: 1.2rem;
}

.page-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* === Footer === */
.site-footer {
  background: 
    linear-gradient(rgba(26, 34, 56, 0.9), rgba(26, 34, 56, 0.9)),
    url('/wp-content/uploads/2025/07/footer-background.jpg') center/cover no-repeat;
  color: #ccc;
  text-align: left;
  padding: 1.5rem 1rem 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* 4-column layout */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.footer-col h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: #fff;
}

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

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

.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #fff;
}

/* Contact info icons */
.contact-info li {
  color: #ccc;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.contact-info i {
  color: #66ccff;
  font-size: 1rem;
}

/* Bottom nav section */
.footer-bottom-nav {
  border-top: 1px solid #444;
  border-bottom: 1px solid #444;
  padding: 1rem 0;
  margin-bottom: 1rem;
}

.footer-bottom-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.footer-bottom-nav a {
  color: #ccc;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-bottom-nav a:hover {
  color: #fff;
}

/* Copyright line */
.footer-copy {
  text-align: center;
  font-size: 0.9rem;
  color: #999;
  margin: 0;
}

/* === Responsive Footer Columns === */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr); /* Forces 2 columns even at smallest size */
  }
}


/* Floating Call button */

.floating-call-wrapper {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: none;
  align-items: center;
  z-index: 1;
}

.floating-call-button {
  background-color: #66ccff;
  color: #fff;
  font-size: 22px;
  padding: 14px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.floating-call-button:hover {
  background-color: #4da3e1;
}

.floating-call-label {
  margin-left: 12px;
  font-size: 15px;
  background-color: #202527;
  padding: 6px 12px;
  border-radius: 20px;
  color: #fff;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show only on mobile */
@media (max-width: 768px) {
  .floating-call-wrapper {
    display: flex;
  }
}
/* === 321 Leads form styling === */
/* Forms use custom theme markup. The plugin only outputs the
   notice blocks below, plus hidden fields. */

.leads-form-success,
.leads-form-errors {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  font-weight: 600;
  text-align: left;
}

.leads-form-success {
  background: #e0fce0;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.leads-form-errors {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.leads-form-success p,
.leads-form-errors p {
  margin: 0;
}

.leads-form-errors p + p {
  margin-top: 0.35rem;
}


/* == Front Page == */

/* Hero Section */

.hero {
  background: #1a2238;
  background-image: url('/wp-content/uploads/2025/07/hero-two.jpg');
  background-repeat: no-repeat; 
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 2rem 1rem 4rem;
}

@media (max-width: 768px) {
  .hero {
    background-image: none !important;
  }
}

.hero-flex {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.hero-text {
 max-width: 50%;
 text-align: left;
}

.hero .page-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #eaeaea;
  text-align: left;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 0;
  color: #eaeaea;
}

/* Claim pages: paragraph that keeps the previous h2 appearance */
.hero-lead {
  margin-top: 0;
}

.hero-form {
 width: 400px;
}

/* Responsive */
@media (max-width: 900px) {

  .hero-text {
    max-width: 100%;
    margin: 0;
    padding-left: 2rem;
    text-align: left;
  }

  .hero .page-title {
    text-align: left;
    font-size: 2rem;
  }

  .hero-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    margin-top: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

}


/* Form */

.sa-hero-form { 
  flex: 1; 
  max-width: 425px;
  min-width: 350px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (max-width: 450px) {
  .sa-hero-form {
    width: 100%;
    min-width: 350px;
  }
}

@media (max-width: 350px) {
  .sa-hero-form {
    min-width: 250px;
  }
}

.sa-form-box {
  background: #f9f9f9;
  color: #1a2238;
  padding: 1.5rem 2rem 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.sa-form-box h2 {
  text-align: center;
  font-size: 1.75rem;
  margin: .5rem 1rem 1.5rem;
  color: #1a2238;
}

/* Hide labels since placeholders are used */
.sa-form-box label {
  display: none;
}

.sa-input-icon {
  position: relative;
  margin-top: 1rem;
}

.sa-input-icon i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 16px;
  pointer-events: none;
}

.sa-form-box input,
.sa-form-box textarea {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #fff;
  color: #1a2238;
  box-sizing: border-box;
}

.sa-form-box input:focus,
.sa-form-box textarea:focus {
  border-color: #1a2238;
  outline: none;
}

.sa-form-button-wrapper { 
  text-align: center; 
}

.sa-form-box button {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: #1a2238;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.sa-form-box button:hover { 
  background: #4da3e1; 
}

.sa-success-message {
  border-radius: 6px;
  font-weight: 600;
}




/* Hero form: message textarea keeps the original single-line height */
.sa-form-box textarea {
  height: 48px;
  min-height: 48px;
  resize: vertical;
  overflow-y: auto;
  font-family: inherit;
  line-height: 1.4;
}



/* === FLEX SERVICES SECTION === */

.services-flex-section {
  background-color: #f0f4f9;
  padding: 3rem 1rem;
  text-align: center;
}

.services-flex-container {
  max-width: 1100px;
  margin: 0 auto;
}

.services-flex-heading {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  font-weight: 700;
  color: #1a2238;
}

.services-flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.services-flex-card {
  flex: 1;
  min-width: 250px;
  max-width: 320px;
  background: #f0f4f9;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-flex-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-6px);
}

.services-flex-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: #1a2238;
}

.services-flex-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: #1a2238;
}

.services-flex-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.services-flex-card.wider {
  max-width: 400px;
  flex: 1 1 45%;
}

@media (max-width: 1050px) {
  .services-flex-row {
    flex-direction: column;
  }

  .services-flex-card,
  .services-flex-card.wider {
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
    text-align: center;
  }

  .services-flex-card h3,
  .services-flex-card p {
    text-align: center;
  }
}


