/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth; /* Enable smooth scrolling for anchor links */
}

body {
  font-family: 'Comic Sans MS', 'Comic Neue', sans-serif; /* Add sans-serif as fallback */
  line-height: 1.6;
  color: #333;
  background: #f0f8ff;
}

.container {
  width: 96%;
  max-width: 1600px;   /* wider */
  margin: auto;
}

h2, h3 {
  color: #ff4500; /* Bright orange for headings */
  font-family: 'Comic Sans MS', sans-serif;
}

p {
  font-size: 16px;
  color: #333;
}

.btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 24px;
  background-color: #9e0853; /* Hot pink button */
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  transition: background-color 0.3s ease;
  min-width: 120px; /* Ensure buttons are touch-friendly */
}

.btn:hover {
  background-color: #9e0853;
  color: #ffffff; /* better contrast */
}

.btn:focus {
  outline: 3px solid #9e0853;
  outline-offset: 2px;
}

/* Top Bar */
/* Top Bar (single source of truth) */
.top-bar {
  background: #0b2c45;
  color: #fff;
  padding: 1rem 0;
  font-size: 1.5rem;
  text-align: center;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0,0,0,.5);
}
.top-bar a { color:#fff; text-decoration:none; font-weight:600; }
.top-bar a:visited { color:#fff; }          /* ← add this line */
.top-bar a:hover,
.top-bar a:focus { text-decoration: underline; }

.container.header-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 1600px;   /* match container */
  margin: 0 auto;
  padding: 0;
  gap: 0.6rem;         /* a bit tighter */
  position: relative;
  min-height: 96px;
}

/* Header */
.main-header {
  background: white;
  border-bottom: 1px solid #ccc;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Header logo block */
/* Header logo block (bigger, overlaps the hero, shifted left) */
.logo-left {
  flex-shrink: 0;
  padding: 0;
  height: 96px;
  display: flex;
  align-items: center;
  margin-left: -40px;      /* move farther left (tweak -32 to -52 if needed) */
  margin-right: 12px;      /* breathing room before the title */
}

.logo-left img{
  height: 100%;
  width: auto;
  border-radius: 9999px;
  position: relative;
  top: 14px;               /* drops it to overlap the banner */
  z-index: 5;              /* keep on top of the banner */
}

@media (min-width: 769px){
  /* Reserve space for the scaled headshot */
  .logo-left { padding-right: 130px; } /* adjust 110–160px to taste */
}

.site-name-center {
    text-align: center;
    padding: 0 1rem;
    flex: 1; /* Fa espandere il nome per occupare spazio */
}

.site-name {
  font-size: 2.5rem;
  font-weight: 900;
  color: #002b49;
  margin: 0;
  white-space: nowrap;   /* <- prevents breaking */
}

/* Navigation */
.main-nav {
  text-align: right;
  padding: 0;          /* desktop */
  flex: 1 1 auto;      /* lets the nav take remaining space */
  margin-left: auto;   /* pushes nav to the right edge */
}

/* Show menu when checkbox is checked */
#nav-toggle:checked ~ .main-nav {
  display: block;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;     /* keep single row */
  gap: 0.55rem;          /* slightly tighter */
  justify-content: flex-end;
  align-items: center;
  margin-top: 0;
  white-space: nowrap;   /* keep the whole row from wrapping */
}

.nav-menu li a {
  text-decoration: none;
  color: #002b49;
  font-weight: 700;
  font-size: 1.25rem;     /* a touch smaller so it fits */
  line-height: 1.1;
  padding: 0.45rem 0.8rem;
  display: inline-block;
  white-space: nowrap;     /* prevent “ACA (Under–65)” and “Life Insurance” from breaking */
  transition: color 0.3s ease;
}

.nav-menu li a:hover {
  color: #9e0853; /* Hot pink on hover */
}

.nav-menu li a:focus {
  outline: 2px solid #9e0853;
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
    display: none;
    width: 40px;
    height: 30px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background-color: #002b49;
  height: 5px; /* Thicker lines for visibility */
  width: 100%;
  border-radius: 3px;
  position: relative;
  transition: all 0.3s ease;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
}

.nav-toggle-label span::before {
  top: -12px;
}

.nav-toggle-label span::after {
  top: 12px;
}

/* Primary icon control via class (JavaScript-driven) */
.nav-toggle-label.open span {
  background: transparent;
}

.nav-toggle-label.open span::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle-label.open span::after {
  transform: rotate(-45deg);
  top: 0;
}

.nav-toggle-label:not(.open) span {
  background: #002b49;
}

.nav-toggle-label:not(.open) span::before {
  transform: none;
  top: -7px;
}

.nav-toggle-label:not(.open) span::after {
  transform: none;
  top: 7px;
}

/* Fallback for pages without updated JavaScript (use checkbox state) */
.nav-toggle:not(:checked) ~ .nav-toggle-label span {
  background: #002b49;
}

.nav-toggle:not(:checked) ~ .nav-toggle-label span::before {
  transform: none;
  top: -7px;
}

.nav-toggle:not(:checked) ~ .nav-toggle-label span::after {
  transform: none;
  top: 7px;
}

.nav-toggle:checked ~ .nav-toggle-label span {
  background: transparent;
}

.nav-toggle:checked ~ .nav-toggle-label span::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle:checked ~ .nav-toggle-label span::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Default: card below the image (mobile & small screens) */
.hero-row .hero-text{
  position: static;
  width: 100%;
  max-width: 900px;
  margin: 12px auto 0;
  background: rgba(44,62,80,.10);
  color: #002b49;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

/* Desktop: float the card into the picture, centered near the bottom */
@media (min-width: 769px){
  .hero-row .hero-text{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: min(100%, 1600px);     /* your current value is fine */
    max-width: none !important;   /* ← override the 900px cap */
    padding: 14px 18px;
    background: rgba(44,62,80,.46);
    color: #fff;
    border-radius: 8px;
    margin: 0;                    /* (optional) cancel mobile margin */
  }

  /* … your h1/p rules are already set to max-width:none */
}

   /* Keep headline full-width (no forced wrap) */
  .hero-row .hero-text h1{
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,.35);
    font-size: clamp(2rem, 2.2vw, 2.6rem);
    line-height: 1.15;
    max-width: none !important;    /* ← remove the 34ch cap */
    margin: 0 0 .35rem;
    white-space: nowrap;
  }

/* Body text bigger & more readable on desktop */
.hero-row .hero-text p{
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
  font-size: clamp(1.15rem, 0.9vw + 0.65rem, 1.40rem); /* was 1.05rem */
  line-height: 1.48;                                   /* was 1.35 */
  margin: 0 0 .6rem;
  max-width: none !important;
  white-space: nowrap;
}

  /* Shorter button inside hero only */
  .hero-row .hero-text .button{
    padding: 10px 16px;
    font-size: 1rem;
  }

  .hero-row .hero-text a{
    color:#fff; text-decoration: underline; font-weight:700;
  }

.hero-image-wrapper {
  position: relative;
  max-width: 1600px;   /* was 1200px */
  margin: 0 auto;
  overflow: visible;
  border-radius: 12px;
  z-index: 1;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-banner {
  width: 100%;
  height: 480px;           /* was 600px */
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-text h1 {
  font-family: 'Times New Roman', serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hero-text p {
  font-family: 'Times New Roman', serif;
  font-size: 1.5rem;
  margin: 0.25rem 0;
}

/* Welcome Section */
.welcome {
  background: white;
  padding: 3rem 0;
  text-align: center;
}

.welcome .signature {
  margin-top: 1rem;
  font-style: italic;
  font-weight: bold;
}

.expertise-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
  text-align: left;
  align-items: flex-start;
}

.expertise-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.expertise-item .icon {
  font-size: 2.8rem;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Services Section */
.services {
  background-color: #f0f8ff;
  padding: 20px;
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.card {
  background-color: #fff;
  border: 2px solid #ffd700;
  border-radius: 10px;
  padding: 15px;
  width: 200px;
  text-align: center;
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Blog Section */
.blog {
  background-color: #f0f8ff;
  padding: 20px;
}

.blog-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.post {
  background-color: #fff;
  border: 2px solid #ffd700;
  border-radius: 10px;
  padding: 15px;
  width: 200px;
  text-align: center;
}

.post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Testimonials Section */
.testimonials {
  background-color: #f0f8ff;
  padding: 3rem 0;
  text-align: center;
}

.testimonials blockquote {
  background-color: #fff;
  border: 2px solid #ffd700;
  border-radius: 10px;
  padding: 20px;
  margin: 15px auto;
  max-width: 600px;
  font-style: italic;
  font-size: 1.2rem;
  color: #333;
}

/* Contact Section */
.contact-page {
  background: white;
  padding: 40px 0;
  text-align: center;
}

.contact-info,
.contact-form {
  margin-bottom: 40px;
}

.contact form,
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 2rem auto;
  background-color: #f9f9f9; /* Light gray background for contrast */
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact label,
.contact-form label {
  font-family: 'Comic Sans MS', sans-serif;
  font-size: 1.1rem;
  color: #002b49;
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
}

.contact input,
.contact textarea,
.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 500px;
  padding: 10px;
  margin-bottom: 20px;
  border: 2px solid #ffd700;
  border-radius: 5px;
  font-family: 'Comic Sans MS', sans-serif;
  font-size: 16px;
}

.contact input::placeholder,
.contact textarea::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #999;
  opacity: 0.8;
}

.contact input:focus,
.contact textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border: 3px solid #9e0853; /* Slightly thicker border on focus */
  outline: 2px solid #9e0853;
  outline-offset: 2px;
  box-shadow: 0 0 5px rgba(255, 105, 180, 0.3);
}

.contact textarea,
.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact button,
.contact-form button {
  background-color: #9e0853;
  border: none;
  cursor: pointer;
}

.contact button.btn,
.contact-form button.btn {
  margin-top: 0; /* Remove default margin-top from .btn */
}

/* Footer */
.footer {
  background: #002b49;
  color: white;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
}

.footer a:hover {
  color: #dddddd;
  text-decoration: underline;
}

.footer a:focus {
  outline: 2px solid #9e0853;
  outline-offset: 2px;
}

.footer p,
.footer li,
.footer span,
.footer h4,
.footer h5 {
  color: white;
}

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

  .header-top {
    flex-direction: row;
    justify-content: space-between;
    padding: 0.5rem;
    min-height: 60px;
  }

  .logo-left {
    order: 1;
  }

  .container.header-top {
    flex-direction: row;
    justify-content: flex-start;
    padding: 0.5rem;
    min-height: 60px;
  }

 .site-name-center {
  padding: 0 1rem;
  flex: 0 0 auto;        /* title takes only what it needs */
}

  .site-name {
    font-size: 1.8rem;
    margin: 10px 0;
  }

  .nav-toggle-label {
  display: flex;
  width: 15px; /* Increased width for better symmetry */
  height: 25px; /* Your preferred height */
  overflow: visible; /* Ensure rotated elements are not clipped */
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background-color: #002b49;
  height: 3px; /* Consistent height for clean lines */
  width: 100%;
  border-radius: 3px;
  position: absolute;
  transition: all 0.3s ease; /* Smooth animation */
}

.nav-toggle-label span {
  top: 50%; /* Center the middle line */
  transform: translateY(-50%); /* Vertically center */
  width: 100%; /* Ensure full width */
}

.nav-toggle-label span::before {
  top: -8px; /* Even spacing above middle line */
  content: '';
}

.nav-toggle-label span::after {
  top: 8px; /* Even spacing below middle line */
  content: '';
}

.main-nav {
  display: none;
  width: 100%;
  background: #002b49;
  padding: 1rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1001;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

  .nav-menu {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-menu li {
    display: block;
  }

  .nav-menu li a {
    font-size: 1.2rem;
    padding: 1rem;
    width: 100%;
    text-align: center;
    color: white;
    transition: background-color 0.3s;
  }

.nav-menu li a:hover {
  background-color: #9e0853; /* match brand red */
  color: white;
}

/* Mobile layout: text below the photo (not covering it) */
.hero-banner { height: 400px; }

.hero-text { margin-top: 12px; }

.hero-text h1 { font-size: 1.5rem; line-height: 1.3; white-space: normal; }
.hero-text p  { font-size: 0.95rem; line-height: 1.5; white-space: normal; }

  .service-cards,
  .blog-posts {
    flex-direction: column;
    align-items: center;
  }

  .card,
  .post {
    width: 100%;
    max-width: 300px;
  }

  .post img {
    height: 300px;
    object-position: top;
  }

  .expertise-list {
    align-items: center;
  }

  .expertise-item {
    flex-direction: column;
    text-align: center;
  }

  .top-bar {
    font-size: 1.2rem;
  }

  .testimonials blockquote {
    font-size: 1rem;
    padding: 15px;
    max-width: 90%;
  }

  .contact input,
  .contact textarea,
  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
    padding: 10px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 16px;
  }
}

.nav-toggle-label {
    z-index: 1002;
}

@media (max-width: 481px) {
  .site-name {
    font-size: 1.5rem;
  }

  .top-bar {
    font-size: 14px;
    padding: 0.5rem;
  }

  .hero-banner {
    height: 300px;
  }

  .card,
  .post {
    max-width: 95%;
  }

  .expertise-item {
    padding: 0 1rem;
  }

  .testimonials blockquote {
    font-size: 0.9rem;
    padding: 10px;
    max-width: 95%;
  }

  .contact input,
  .contact textarea,
  .contact-form input,
  .contact-form textarea {
    font-size: 13px;
    padding: 8px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* Active nav item — same look on desktop and mobile */
.main-nav .nav-menu li a.active {
  background-color: #9e0853;
  color: #fff;                /* white text */
  border-radius: 10px;
  padding: .5rem 1rem;
  display: inline-block;      /* ensures the pill hugs the text */
  font-weight: 700;
}

/* Desktop hover pill */
@media (min-width: 769px) {
  .nav-menu li a:hover {
    background-color: #9e0853;
    color: #ffffff;
    border-radius: 6px;
  }
}
main section {
  position: relative;
  z-index: 10;
  padding: 2rem;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 900px;
  width: 100%;
  margin: 2rem auto;
}

/* Keep it white even on hover */
.main-nav .nav-menu li a.active:hover {
  color: #fff;
}

main section:hover,
main section:active {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  z-index: 11;
}

.payment-btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(to bottom, #9e0853, #c71585); /* Stronger gradient from hot pink to a darker magenta */
  color: white; /* White text */
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.payment-btn:hover {
  background: linear-gradient(to bottom, #c71585, #9e0d66); /* Even darker gradient on hover */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: white;
}

main h2 {
  color: #ff4500;
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}
main h2::after {
  content: '';
  width: 50%;
  height: 3px;
  background-color: #ff4500;
  position: absolute;
  bottom: -5px;
  left: 25%;
}

main p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1rem;
  text-align: center;
}

main ul {
  list-style-type: none;
  padding: 0;
  margin: 1rem 0;
}

main li::before {
  content: "✔";
  color: #ff4500;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2rem;
}

main li {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 2rem;
  text-align: left;
}

main img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.highlight {
  background-color: #fff3cd;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
}

.pricing-tier {
  border: 2px solid #ffd700;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
  background-color: #fffef0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pricing-tier h3 {
  color: #ff4500;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-tier .price {
  font-size: 1.3rem;
  font-weight: bold;
  color: #002b49;
  margin-bottom: 1rem;
}

.we-accept-img {
  display: block;
  margin: 1rem auto;
  height: 105px;
  width: 300px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.we-accept-img:hover { transform: scale(1.05); }

 .we-accept-container {
  background-color: white;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  width: 100%;
  text-align: center;
}

 .we-accept-caption {
   font-size: 0.9rem;
   color: #333;
   margin-top: 0.5rem;
   text-align: center;
 }

main {
  padding: 3rem 1rem;
  background-color: #f0f8ff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 600px) {
  main section {
    padding: 1.25rem;
  }
  main h2 {
    font-size: 1.5rem;
  }
  main p, main li {
    font-size: 1rem;
  }
  .pricing-tier h3 {
    font-size: 1.3rem;
  }
  .pricing-tier .price {
    font-size: 1.1rem;
  }
}

.payment-buttons {
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping to keep buttons side by side */
    justify-content: center;
    align-items: center; /* Vertically center the buttons */
    gap: 1rem;
    margin: 0.5rem 0;
    width: 100%;
    max-width: 500px; /* Limit the width to prevent stretching */
    box-sizing: border-box;
    margin-left: auto; /* Center the container */
    margin-right: auto;
}

@media (max-width: 768px) {
  .payment-buttons {
    flex-direction: column;
    gap: 0.5rem;     /* overrides the base 1rem on phones */
  }
}

.paypal-btn {
    display: block; /* Ensure the container is visible */
    min-width: 200px; /* Give enough space for the PayPal button */
    height: 40px; /* Match SwipeSimple button height */
    overflow: hidden; /* Prevent overflow */
}

.paypal-btn:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#paypal-container-CUMKDLDX93SSY {
    width: 100% !important; /* Ensure it takes the full width of the parent */
    height: 100% !important; /* Ensure it takes the full height of the parent */
    display: block !important; /* Ensure visibility */
}

#paypal-container-CUMKDLDX93SSY iframe {
    width: 100% !important;
    height: 100% !important;
    border-radius: 6px !important; /* Match SwipeSimple button */
}

.card img.detective-img,
.post img.detective-img {
  position: relative;
  z-index: 10;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.card:hover img.detective-img,
.post:hover img.detective-img {
  transform: scale(1.1) translateY(-20px) rotate(-2deg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.hero-image-wrapper:hover .hero-banner {
  transform: scale(1.05) translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.text-center {
  text-align: center;
}

.logo-left img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
}

.logo-left img:hover{
  transform: scale(1.8) rotate(-1deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.sample-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.sample-image:hover {
  transform: scale(1.1) translateY(-20px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.payment-text {
  color: #333;
  text-align: center;
}

.visually-hidden-seo {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.embed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  align-items: start;
}
.embed { max-width: 540px; margin: 0 auto; }

.review-card {
  background: #fff;
  border: 2px solid #ffd700;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.review-card blockquote { font-style: italic; margin: 0 0 .5rem; }
.review-card figcaption { font-weight: bold; color: #002b49; }

@media (max-width: 768px) {
  .container.header-top {
    padding: .5rem 0 !important;
    min-height: 64px !important;
  }
  .logo-left {
    height: 64px !important;
    margin-left: 0 !important;
  }
  .logo-left img {
    height: 56px !important;
    width: auto !important;
    transform: none !important;
    border-radius: 9999px;
    top: 0 !important;
  }
  .site-name {
    font-size: 1.6rem !important;
  }
  .nav-toggle-label {
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%);
  }
}

/* Optional: nicer link color in page content */
/* Links inside page content */
main a {
  color: #9e0853;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}
main a:hover,
main a:focus {
  color: #9e0853;
  text-decoration: underline;
}

/* Powered by Cozelos Data */
.footer .powered-by{
  margin-top:.5rem;
  font-size:.95rem;
  opacity:.9;
}
.footer .powered-by a{ color:#fff; text-decoration:none; font-weight:600; }
.footer .powered-by a:hover{ text-decoration:underline; }

.footer .powered-logo{
  height:18px;           /* tweak 16–22px if you want bigger/smaller */
  width:auto;
  vertical-align:middle;
  margin-left:8px;
  /* keep the logo full-color on the dark footer */
  filter:none;
}

/* If you ever want a white mono version instead:
.footer .powered-logo{ filter:brightness(0) invert(1); }
*/

/* Improve contrast on the mobile hero card */
@media (max-width: 768px) {
  /* keep your light panel, but use dark text */
  .hero-text { 
    background: #e9eef3;            /* your light gray/blue */
    color: #0b2a3b;                  /* brand navy */
    line-height: 1.45;
  }

.hero-text h1,
.hero-text p,
.hero-text li,
.hero-text strong,
.hero-text span {                 /* ← no links here */
color: #0b2a3b !important;
}

  .hero-text a:not(.button):not(.enroll-btn) {
    text-decoration: underline;
    color: #0b5bd3 !important;
  }

  .hero-text a.enroll-btn,
.hero-text a.enroll-btn:visited,
.hero-text a.enroll-btn:hover,
.hero-text a.enroll-btn:focus,
.hero-text a.enroll-btn:active {
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  text-decoration:none !important;
}
}

/* Ensure solid, high-contrast background */
.button {
  background: linear-gradient(#2563eb, #1e40af);
  border: 0;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  border-radius: 10px;
  padding: 12px 18px;
}

/* Optional: make buttons easier to tap on phones */
@media (max-width: 640px){
  .hero-text .button{
    display: block;
    width: 100%;
    max-width: 330px;
    margin: 12px 0;
    text-align: center;
  }
}

  /* Force the CTA button text to stay white in all states */
  .hero-text a.button,
  .hero-text a.button:link,
  .hero-text a.button:visited,
  .hero-text a.button:hover,
  .hero-text a.button:focus,
  .hero-text a.button:active {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important; /* iOS/Safari */
    text-decoration: none !important;
  }

  /* If the button contains inner elements, keep them white too */
  .hero-text a.button * {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
  }

/* 1) Make sure button text is always white on every state */
a.btn, .btn,
a.payment-btn, .payment-btn {
  color: #fff !important;
}
a.btn:hover, a.btn:focus, a.btn:active, a.btn:visited,
.btn:hover, .btn:focus, .btn:active, .btn:visited,
a.payment-btn:hover, a.payment-btn:focus, a.payment-btn:active, a.payment-btn:visited,
.payment-btn:hover, .payment-btn:focus, .payment-btn:active, .payment-btn:visited {
  color: #fff !important;
  text-decoration: none;
}

/* 2) Keep your generic link color, but NOT for buttons */
main a:not(.btn):not(.payment-btn) {
  color: #9e0853;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}
main a:not(.btn):not(.payment-btn):hover {
  text-decoration: underline;
  color: #9e0853;
}

/* 1) Content links (do NOT style buttons) */
main a:not(.btn):not(.payment-btn):not(.button):not(.cta) {
  color: #9e0853;
  text-decoration: none;
  font-weight: bold;
  transition: color .3s ease, text-decoration .3s ease;
}
main a:not(.btn):not(.payment-btn):not(.button):not(.cta):hover,
main a:not(.btn):not(.payment-btn):not(.button):not(.cta):focus {
  color: #9e0853;
  text-decoration: underline;
}

/* 2) Buttons must always be white text */
body a.btn, body .btn,
body a.payment-btn, body .payment-btn,
body a.button, body .button,
body a.cta, body .cta {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important; /* Safari/iOS */
  text-decoration: none !important;
}
body a.btn:hover, body a.btn:focus, body a.btn:active, body a.btn:visited,
body .btn:hover, body .btn:focus, body .btn:active, body .btn:visited,
body a.payment-btn:hover, body a.payment-btn:focus, body a.payment-btn:active, body a.payment-btn:visited,
body .payment-btn:hover, body .payment-btn:focus, body .payment-btn:active, body .payment-btn:visited,
body a.button:hover, body a.button:focus, body a.button:active, body a.button:visited,
body .button:hover, body .button:focus, body .button:active, body .button:visited,
body a.cta:hover, body a.cta:focus, body a.cta:active, body a.cta:visited,
body .cta:hover, body .cta:focus, body .cta:active, body .cta:visited {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-decoration: none !important;
}

/* ---- Vimeo embed (single source of truth) ---- */
.vm{
  max-width: 960px;     /* change to 1100px if you want it wider */
  margin: 16px auto;    /* small, even spacing */
  line-height: 0;       /* kill phantom whitespace */
}
.vm iframe{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9; /* modern sizing, no padding hacks */
  height: auto;
  border: 0;
  border-radius: 12px;
  background: #000;
}
@supports not (aspect-ratio: 16 / 9){
  .vm iframe{ height: 540px; }  /* fallback for very old browsers */
}

