@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,700&display=swap');

html, body {
  overflow-x: hidden;  /* disable horizontal scroll */
  overflow-y: auto;    /* enable vertical scroll */
  scrollbar-width: thin;       /* show slim scrollbar in Firefox */
  -ms-overflow-style: auto;    /* restore scrollbar in IE/Edge */
}

/* Show vertical scrollbar in Chrome, Safari, Opera */
body::-webkit-scrollbar {
  width: 8px;  /* adjust thickness */
}

body::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.3);
  border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0,0,0,0.5);
}


/* --- RESET & BASE COLORS --- */
* { box-sizing: border-box; }
/* reset / base */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Georgia, serif;
  background: #f9f6ed;
}

#splash-screen {
  position: fixed;
  inset: 0;
  background: #000;        /* Black background */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
}
#splash-screen video {
  border-radius: 12px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}
body.splash-hide #splash-screen {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: relative;       /* anchor for absolute-centering center block */
  display: flex;
  align-items: center;
  padding: 12px 48px;
  min-height: 84px;         /* stable vertical center baseline */
  z-index: 500;
}

/* left & right only take content width */
.nav-left,
.nav-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

/* logo size */
.logo img {
  height: 72px;             /* consistent logo height */
  display: block;
}

/* ---------- CENTERED LINKS (DESKTOP ONLY) ---------- */
.nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%); 
  display: flex;
  gap: 36px;
  align-items: center;
  white-space: nowrap;
  z-index: 100;
  pointer-events: auto;
}

.nav-links.show {
  right: 0;   /* this is what makes it visible */
}
/* unify link appearance (regular links + dropdown trigger) */
.nav-links a,
.nav-links .dropdown > a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  line-height: 1;
  padding: 6px 4px;         /* identical vertical hit area */
  height: 40px;             /* equal height for visual alignment */
}

/* hover */
.nav-links a:hover,
.nav-links .dropdown > a:hover {
  color: #800020;
}

/* dropdown container stays relative */
.dropdown {
  position: relative;
}

/* dropdown box */
.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 1px);   /* directly under trigger */
  left: 0;
  min-width: 240px;
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  font-size: 15px;
  z-index: 100;
}

/* show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content h4 {
  margin: 10px 0 5px;
  font-size: 13px;
  color: darkred;
  font-weight: normal;
}

.dropdown-content a {
  display: block;
  padding: 5px 0;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: normal;
}
.dropdown-content a:hover { color: #800020; }

/* ---------- RIGHT: login big rounded button ---------- */
.nav-right {
  margin-left: auto;        /* push to the far right */
  gap: 16px;
}

.signup-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #800020;
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-family: 'montserrat', sans-serif;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform .18s, box-shadow .18s, background .18s;
}

.signup-icon i { font-size: 1.25rem; }
.signup-icon:hover { transform: translateY(-2px); background:#a00028; }

/* ---------- HAMBURGER (mobile) ---------- */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 600;
  color: #1a1a1a;
}
/* Sidebar close button */
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
  display: none; /* hidden by default */
}
/* ===================== RESPONSIVE ===================== */

/* Sidebar behaviour for <= 1024px */
@media (max-width: 1024px) {
  .hamburger {
    display: block;
    margin-left: auto;   /* keep it on right side */
    font-size: 2rem;
    cursor: pointer;
    color: #1a1a1a;
  }

    .nav-links {
    position: fixed;
    top: 0;
    right: -260px;  /* Start hidden off-screen to the right */
    left: auto;     /* reset desktop centering */
    transform: none;/* remove translate */
    height: 100%;
    width: 260px;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 20px;
    gap: 20px;
    transition: right 0.28s ease;
    box-shadow: -4px 0 10px rgba(0,0,0,0.08);
    z-index: 1000;
  }

  .nav-links.show {
    right: 0;   /* Slide into view */
  }

    .dropdown-content {
    display: none;
  }

  .dropdown.open .dropdown-content {
    display: block;
  }

  .dropdown > a::after {
    content: " ▼";
    font-size: 0.8rem;
  }

  /* hide top login button when hamburger active */
  .nav-right {
    display: none;
  }
  .nav-links.show .close-btn {
    display: block; /* only show when sidebar is open */
  }

  /* responsive login button csss it is diffrent than desktop please check before changing */
 .signup-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 👈 aligns to the left */
    gap: 10px;
  
   color: #fff; /* makes text white */
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 40px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, background 0.2s ease;
    margin: -240px 0 10px 2px; /* 👈 gives left spacing */
    width: 70%
  }

  .signup-icon:hover {
    background: #a00028;
    transform: translateY(-2px);
  }

 .signup-icon i {
    font-size: 1.1rem;
    color: #fff;
  }

 .signup-icon span {
    font-size: 1.1rem;
     color: #fff;
  }
}

/* ✅ Responsive design for .signup-icon (250px to 765px) */
@media (max-width: 765px) and (min-width: 250px) {
  .signup-icon {
   width: 70%;
   margin: -280px 0 10px 2px; /* 👈 gives left spacing */
    padding: 10px 18px; /* smaller padding */
    font-size: 0.95rem; /* adjust text size */
    gap: 8px; /* reduce gap */
    justify-content: center; /* center items */
    border-radius: 35px; /* slightly smaller curve */
  }

  .signup-icon i {
    font-size: 1rem; /* smaller icon */
  }

  .signup-icon span {
    font-size: 1rem; /* smaller text */
  }
}


/* smaller tweaks */
@media (max-width: 768px) {
  .logo img { height: 72px; }
  .nav-links a { font-size: 18px; height: 36px; }
  .signup-icon { padding: 10px 18px; }
}
@media (max-width: 480px) {
  .logo img { height: 72px; }
  .nav-links a { font-size: 16px; height: 34px; }
  .signup-icon { padding: 10px 14px; }
}

/* smaller tweaks */



/* --- HEADINGS & PARAGRAPHS --- */
p, .highlight, .text,
.lawshield-plans .plan-content p,
.header-content p,
.first-text-box p,
.second-text-box p,
.footer-tagline,
.footer-link-col a,
.footer-legal-text {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
.header-content h1,
.lawshield-plans h1,
.lawshield-plans .plan-content h2,
.attorney-heading,
.hero-content h1,
.dark-section h2,
h2, .main-heading {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 500;
}

/* --- MAIN HEADER --- */
.header-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1450px;
  margin: 0 auto;
  padding: 80px 5vw 40px 5vw;
  min-height: 560px;
}
.header-content { max-width: 570px; }
.header-content h1 { font-size: 62px; color: #134686; }
.header-content p { font-size: 22px; color: #000000; }
.header-btns { display: flex; gap: 18px; margin-top: 25px; }
.header-btns .get-covered,
.header-btns .learn-more {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  border-radius: 22px;
  padding: 13px 34px;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.header-btns .get-covered {
  background: #bb2d3b;
  color: #fff;
  margin-right: 8px;
}
.header-btns .get-covered:hover { background: #a22430; }
.header-btns .learn-more {
  border: 1.8px solid #0c2f59e1;
  color: #0c2f59e1;
  background: #FFFDF6;
}
.header-btns .learn-more:hover { color: #bb2d3b; border-color: #bb2d3b; }
.header-image {
  width: 32vw;            /* Responsive width: 32% of viewport, adjust as needed */
  max-width: 520px;       /* Max size for large screens */
  min-width: 380px;       /* Min size for small screens */
  aspect-ratio: 1 / 1;    /* Makes the box perfectly square */
  margin-left: 56px;
  border-radius: 22px;
  background: #FFFDF6;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(19,70,134,0.12);
  position: relative;
}
.header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
}
@media (max-width: 900px) {
  .header-image {
    width: 80vw;
    max-width: 80vw;
    margin-left: 0;
    margin-right: auto;
    margin-bottom: 18px;
  }
}
@media (max-width: 600px) {
  .header-image {
    width: 94vw;
    max-width: 94vw;
    border-radius: 16px;
  }
  .header-image img {
    border-radius: 16px;
  }
}


 /* --- PLANS SECTION --- */
.lawshield-plans {
  padding: 35px 8vw;
  background-color: #0c2f59e1;
}
.lawshield-plans h1 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 36px;
  color: #FFFDF6;
  font-family: 'EB Garamond', serif;
}
.lawshield-plans .plans-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}
.lawshield-plans .plan-card {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  background: #FFFDF6;
  border-radius: 12px;
  overflow: hidden;
}
.lawshield-plans .plan-content { padding: 20px 25px; flex: 1; }
.lawshield-plans .plan-content h4 {
  color: #0c2f59e1;
  font-size: 15px;
  margin-bottom: 10px;
  font-weight: normal;
}
.lawshield-plans .plan-content h2 {
  font-family: 'EB Garamond', serif;
  font-size: 50px;
  font-style: italic;
  margin-bottom: 12px;
  color: #0c2f59e1;
}
.lawshield-plans .plan-content p {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 16px;
  color: #0c2f59e1;
}
.lawshield-plans .btn {
  display: inline-block;
  padding: 8px 20px;
  background: #a1032f;
  color: #fff;
  font-size: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.2s ease;
  border: 1px solid #fff;
  margin-top: 10px;
}
.lawshield-plans .btn:hover { background: #c5093e; }
.lawshield-plans .plan-image { flex: 1; max-width: 40%; }
.lawshield-plans .plan-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


@media (max-width: 900px) {
  .header-section { flex-direction: column; text-align: center; padding: 24px 3vw 10px 3vw; }
  .header-image { margin-left: 0; width: 80vw; }
  .lawshield-plans .plan-card { flex-direction: column; }
  .lawshield-plans .plan-image { max-width: 100%; height: 180px; }
  .footer-upper, .footer-link-cols, .footer-social-contact-row {
    flex-direction: column; gap: 14px; align-items: center;
  }
}
@media (max-width: 600px) {
  .header-image { height: 120px; }
  .header-content h1 { font-size: 28px; }
}


/* --- RESTYLE ALL SECTION & BUTTON --- */
button, .btn, .btn-red, .btn-yellow, .hero-btn {
  font-family: 'Montserrat', Arial, sans-serif !important;
}

.btn-red, .btn-yellow {
  margin-top: 20px;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.18s;
}
.btn-red {
  background: #a30d2d;
  color: #fff;
  border: 1px solid #fff;
}
.btn-red:hover { background: #7d0a23; }
.btn-yellow {
  background: transparent; color: #0c2f59e1; border: 1px solid #0c2f59e1;
}
.btn-yellow:hover {
  background: #a30d2d; color: #FFFDF6; border: 1px solid #a30d2d;
}

/* --- DARK SECTIONS AND FOOTER --- */
.dark-section,
.attorney-section {
  background: #0c2f59e1;
  color: #FFFDF6;
}
.dark-section h2,
.attorney-section h2,
.footer-col-title { color: #FFFDF6; }

.footer-section {
  background: #0c2f59e1;
  color: #FFFDF6;
  font-family: 'Montserrat', Arial, sans-serif;
}
.footer-link-col a { color: #FFFDF6; }
.footer-link-col a:hover { color: #bb2d3b; }


 .container {
      max-width: 1000px;
      margin: auto;
      padding: 40px 20px;
      text-align: center;
    }

    h2 {
      color: #1e1642;
      font-size: 40px;
      font-weight: bold;
      margin-bottom: 10px;
    }

    .highlight {
      color: #a30d2d;
      font-weight: bold;
    
       font-size: 20px;

    }

    .text {
      font-size: 25px;
      
      color: #333;
    }

    .btn-red {
      margin-top: 20px;
      background: #a30d2d;
      color: #fff;
      font-size: 14px;
      font-weight: bold;
      padding: 10px 24px;
      border-radius: 20px;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .btn-red:hover {
      background: #7d0a23;
    }

    .grid-wrapper {
      margin-top: -200px;
  position: relative;
top: 200px;
  z-index: 2;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;           /* let each row size evenly */
  gap: 2px;                     /* optional for spacing */
  margin: 0 auto;
  width: 750px;                  /* keep fixed width */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* fills box but may crop */
  display: block;
}
.image-grid video {
  width: 100%;
  height: 100%;                  /* fill its cell properly */
  object-fit: cover;             /* fills the box neatly */
  border-radius: 10px;
  display: block;
}



    /* Dark Section full width */
.dark-section {
  background: #0c2f59e1;
  position: relative;
  padding: 200px 20px 80px; 
  color: #fff;
  z-index: 1;
  text-align: center; /* ensures everything centers */
}

.dark-section h2 {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 40px;
  text-align: center;
  color: #fff;
}

    .content {
  position: relative;      /* for absolute positioning of text */
  max-width: 2000px;
  margin: auto;
  text-align: center;      /* keep image centered */
   

}

.content img {
  width: 400px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.first-text-box {
  max-width: 300px;
  position: absolute;
  top: 50%;                /* vertically center text relative to image */
  left: 52%;               /* start from image center */
  transform: translate(200px, -50%); /* move right by 200px and center vertically */
  text-align: left;
}


.before-label i {
  font-size: 20px;
  color: #f7c948;
  margin-right: 8px;
}




    .first-text-box p {
      font-size: 14px;
      line-height: 1.6;
      color: #ffffff;
      margin-bottom: 15px;
    }

    .btn-yellow {
      border: 1px solid #ffffff;
      color: #ffffff;
      background: transparent;
      font-size: 14px;
      font-weight: bold;
      padding: 10px 20px;
      border-radius: 20px;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .btn-yellow:hover {
      background:#a30d2d;
      color: #ffffff;
    }

.second-content {
  position: relative;      /* for absolute positioning of text */
  max-width: 2000px;
  margin: auto;
  text-align: center;      /* keep image centered */
}

.second-content img {
  margin-top: 100px;
   margin-bottom: 100px;
  width: 400px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.second-text-box {
  max-width: 300px;
  position: absolute;
  top: 50%;
  left: 50%;                  /* position text box center relative to image */
  transform: translate(-180%, -50%);  /* move left of the image */
  text-align: left;
}

.intro-flexbox {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 32px;
      margin: 0 auto 48px auto;
      max-width: 750px;
      background: #0c2f59e1;
      border-radius: 16px;
      padding: 32px 24px;
    }
    .intro-text {
      flex: 1;
      font-size: 1.35rem;
      color: #ffffff;
      line-height: 1.5;
    }
    .intro-image img {
      max-width: 210px;
      border-radius: 12px;
      object-fit: cover;
      height: 210px;
      width: 210px;
    }
    .core-protections-section {
      padding: 56px 0 40px 0;
      background: #FFFDF6;
      width: 100%;
    }
    .heading-section {
      position: relative;
      text-align: center;
      margin-bottom: 40px;
    }
    .background-number {
      position: absolute;
      left: 50%;
      top: -30px;
      transform: translateX(-50%);
      font-size: 92px;
      color: #ece1c2;
      font-weight: 700;
      z-index: 0;
      pointer-events: none;
      user-select: none;
    }
    .main-heading {
      position: relative;
      color: #0c2f59e1;
      font-weight: 500;
      font-size: 2.2rem;
      z-index: 1;
    }
    .sub-heading {
      margin-top: 8px;
      color: #0c2f59e1;
      font-size: 1.18rem;
      z-index: 1;
      position: relative;
    }
    .protections-grid {
      display: flex;
      justify-content: center;
      gap: 32px;
      max-width: 1150px;
      margin: 0 auto;
    }
    .protection-card {
      perspective: 1000px;
      min-width: 320px;
      max-width: 380px;
      box-shadow: none;
    }
    .flip-card {
      width: 100%;
      height: 330px;
      border-radius: 14px;
      box-shadow: 0 2px 8px rgba(150,145,110,0.09);
      margin: 0 auto;
      background: #fff;
      cursor: pointer;
    }
    .flip-card-inner {
      position: relative;
      width: 100%;
      height: 100%;
      border-radius: 14px;
      transition: transform 0.7s cubic-bezier(.4,2,.3,1);
      transform-style: preserve-3d;
    }
    .flip-card:hover .flip-card-inner,
    .flip-card.flipped .flip-card-inner {
      transform: rotateY(180deg);
    }
    .flip-card-front,
    .flip-card-back {
      position: absolute;
      width: 100%;
      height: 100%;
      backface-visibility: hidden;
      border-radius: 14px;
      padding: 34px 27px 23px 24px;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      box-sizing: border-box;
      background: #fff;
    }
    .circle-num {
      width: 36px;
      height: 36px;
      background: #f5edd8;
      color: #9d9071;
      font-weight: 700;
      font-size: 1.3rem;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 10px;
    }
    .card-text {
      color: #0c2f59e1;
      font-size: 1.08rem;
      line-height: 1.5;
    }
    .flip-card-back {
      transform: rotateY(180deg);
    }
    .flip-card-front {
      z-index: 2;
    }
   /* Flip card text alignment fix */
.flip-card-front {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: 20px;
}

/* Number circle */
.flip-card-front .number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f3e9d2;
  color: #6a5b3d;
  font-weight: 600;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  margin-bottom: 20px;
}

/* Title styling */
.flip-card-front h3 {
  font-size: 18px;
  color: #123c64;
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Flip hint styling */
.flip-card-front .hover-hint {
  font-size: 14px;
  color: #000;
  font-weight: 500;
  opacity: 0.8;
  margin-top: 8px;
}


/* --- Hover Hint for Lawyer Cards --- */
.hover-hint {
  text-align: center;
  font-size: 14px;
  color: #fff;
  opacity: 0.8;
  margin-top: 8px;
  font-family: 'Montserrat', sans-serif;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hover effect on desktop */
.attorney-card:hover + .hover-hint {
  opacity: 1;
  transform: scale(1.05);
  color: #d33b2d;
}

/* Hide label on mobile if you want (optional) */
@media (max-width: 768px) {
  .hover-hint {
    font-size: 13px;
    margin-top: 6px;
    opacity: 0.9;
  }
}

.flip-card-front {
  position: relative;
}

/* Hide on hover (desktop) */
.flip-card:hover .hover-hint {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
}
/* Fix overlap on smaller screens */
@media (max-width: 768px) {
  .hover-hint {
    position: static;         /* no absolute positioning */
    display: block;
    margin-top: 10px;         /* spacing from card text */
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border-radius: 15px;
    padding: 4px 10px;
    font-size: 13px;
  }

  /* keep it visible — no hover behavior on mobile */
  .flip-card:hover .hover-hint {
    opacity: 0.8;
    transform: none;
  }
}
/* --- Hover Me label style --- */
.hover-label {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #b5b5b5;
  margin-top: 8px;
  transition: color 0.3s ease;
}

.flip-card:hover + .hover-label,
.attorney-card:hover + .hover-label {
  color: #d33b2d; /* Highlight color when hovered */
}

    @media (max-width: 900px) {
      .intro-flexbox {
        flex-direction: column;
        gap: 18px;
        text-align: center;
      }
      .protections-grid {
        flex-direction: column;
        gap: 18px;
        align-items: center;
      }
      .flip-card {
        min-width: 90vw;
        height: 340px;
      }
    }


/* Attorney Flip Cards */
.attorney-card-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.flip-card {
  background-color: transparent;
  width: 300px;
  height: 400px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  backface-visibility: hidden;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attorney-name-overlay {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  background: rgba(0, 0, 0, 0.55);
  padding: 10px;
  text-align: center;
  letter-spacing: 0.5px;
}

.flip-card-back {
  background: #ecbfae;
  color: #2d2d2d;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.flip-card-back h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.flip-card-back p {
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.flip-card-back .btn-yellow {
  background-color: #2d2d2d;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  transition: background 0.3s;
}

.flip-card-back .btn-yellow:hover {
  background-color: #000;
}
/* Attorney Section */
.attorney-section {
  padding: 60px 20px;
  background-color: #f8f8f8; /* subtle background */
  font-family: 'Montserrat', sans-serif;
}

.attorney-card {
  width: 300px;
  margin: 20px;
  perspective: 1000px; /* for flip effect */
}

.attorney-card .flip-card-inner {
  transition: transform 0.6s;
  transform-style: preserve-3d;
  position: relative;
}

.attorney-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.attorney-card .flip-card-front,
.attorney-card .flip-card-back {
  backface-visibility: hidden;
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.attorney-card .flip-card-front {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.attorney-card .flip-card-front img.attorney-photo {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.attorney-card .attorney-name-overlay {
  margin-top: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  color: #ffffff;
}

.attorney-card .flip-card-back {
  background-color: #fff;
  transform: rotateY(180deg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.attorney-card .flip-card-back h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
}

.attorney-card .flip-card-back p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 15px;
  max-height: 320px; /* optional: prevent cards from being too tall */
  overflow-y: auto; /* adds scroll if text is long */
}


/* Optional: Scrollbar styling for long paragraphs */
.attorney-card .flip-card-back p::-webkit-scrollbar {
  width: 5px;
}

.attorney-card .flip-card-back p::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 3px;
}

    .attorney-section {
  background: #0c2f59e1;
  padding: 60px 0 52px 0;
  text-align: center;
}
.attorney-heading {
  color: #fff;
  font-family: 'Georgia', serif;
  font-size: 2.65rem;
  font-weight: 500;
  margin-bottom: 46px;
  line-height: 1.17;
}
.headline-underline-box {
  display: inline-block;
  position: relative;
}
.headline-underline-svg {
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 26px;
  pointer-events: none;
  z-index: 0;
}
.attorney-card-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 42px;
  margin-bottom: 50px;
}

.attorney-card {
  background: transparent;
  padding: 0;
  border-radius: 21px;
  text-align: center;
}
.attorney-photo-border {
  position: relative;
  width: 320px;
  height: 420px;
  background: #fff;
  border-radius: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(64,64,120,.12);
  margin: 0 auto;
}
.attorney-photo {
  width: 300px;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  margin: 0 auto;
}
.photo-play-btn {
  position: absolute;
  right: 18px;
  bottom: 16px;
  cursor: pointer;
  z-index: 3;
}
.attorney-name-overlay {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: #fff;
  font-size: 1.05rem;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: rgba(44,46,70,0.33);
  border-radius: 5px;
  padding: 2px 10px 2px 8px;
  z-index: 2;
  letter-spacing: 0.01em;
}
.attorney-quote-block {
  margin-top: 25px;
  color: #fff;
}
.quote-icon {
  color: #00000090;
  font-size: 3.9rem;
  line-height: 1;
  margin-bottom: -38px;
}
.attorney-quote-block blockquote {
  background: none;
  border: none;
  color: #fff;
  font-family: 'Georgia', serif;
  font-size: 1.27rem;
  margin: 0 auto;
  line-height: 1.66;
  max-width: 640px;
}
.quote-author {
  display: block;
  margin-top: 20px;
  font-size: 1rem;
  color: #ffffffb7;
  font-family: 'Segoe UI', Arial, sans-serif;
  letter-spacing: 0.01em;
}

@media (max-width: 1000px) {
  .attorney-card-row {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }
  .attorney-photo-border {
    width: 85vw;
    max-width: 350px;
    height: 360px;
  }
  .attorney-photo {
    width: 97%;
    height: 320px;
  }
}



.hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #181c31;
  overflow: hidden;
}
.hero-bg img {
  position: absolute;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}
.hero-content {
  position: absolute;
  left: 6vw;
  bottom: 11vh;
  z-index: 2;
  color: #fff;
  text-align: left;
}
.hero-content h1 {
  font-family: 'Georgia', serif;
  font-size: 3.3rem;
  line-height: 1.14;
  font-weight: 500;
  margin-bottom: 36px;
  text-shadow: 0 2px 24px rgba(30,30,50,0.27);
}
.hero-btn {
  display: inline-block;
  font-size: 1.13rem;
  font-family: 'Georgia', serif;
  padding: 0.65em 2.2em;
  border-radius: 29px;
  background: #bb102e;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 12px rgba(70,20,40,0.09);
  border: 2px solid #fff;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.hero-btn:hover {
  background: #ec294d;
  color: #fff;
}
@media (max-width: 900px) {
  .hero-content h1 {
    font-size: 2.1rem;
  }
  .hero-content {
    left: 5vw;
    bottom: 8vw;
  }
  .hero-section, .hero-bg img {
    height: 62vh;
  }
}
.footer-section {
  background: #0c2f59e1;
  font-size: 1rem;
  padding: 52px 0 0 0;
}
.footer-upper {
  display: flex;
  align-items: flex-start;
  max-width: 1280px;
  margin: 0 auto;
  gap: 56px;
}
.footer-logo-col {
  min-width: 220px;
  margin-right: 28px;
}
.footer-logo {
  width: 120px;
  height: auto;
  margin-bottom: 18px;
  display: block;
}
.footer-tagline {
  color: #ffffff;
  font-size: 1rem;
  margin-top: 4px;
}
.footer-link-cols {
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: 46px;
}
.footer-link-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 130px;
}
.footer-col-title {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.footer-link-col a {
  color: #ffffffbe;
  text-decoration: none;
  font-size: 1rem;
  margin-bottom: 1px;
  transition: color 0.18s;
}
.footer-link-col a:hover { color: #fff; }
.footer-divider {
  max-width: 1280px;
  border: none;
  height: 1px;
  background: #ffffff;
  margin: 32px auto 29px auto;
  width: 95%;
  display: block;
}
.footer-legal-text-block {
  max-width: 1280px;
  margin: 0 auto 12px auto;
  color: #969cb6;
}
.footer-legal-text {
  font-size: 0.97rem;
  margin-bottom: 10px;
  line-height: 1.5;
  color: #ffffffbe;
}
.footer-social-contact-row {
  max-width: 1280px;
  margin: 16px auto 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-social-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer-social-icons a {
  color: #ffffff;
  font-size: 18px;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.footer-social-icons a:hover {
  color: #a91e1e;
}
.footer-contact {
  text-align: left;
  color: #ffffffbe;
  font-size: 1rem;
  min-width: 195px;
  letter-spacing: 0.01em;
}
.footer-contact-label {
  font-weight: 700;
  color: #ffffffbe;
  margin-bottom: 2px;
}
.footer-bottom-bar {
  color: #ffffffbe;
  border: none;
  font-size: 1rem;
  max-width: 1280px;
  margin: 36px auto 0 auto;
  display: flex;
  gap: 28px;
  align-items: center;
  padding-bottom: 42px;
}
.footer-bottom-bar a {
  color: #ffffffbe;
  text-decoration: none;
  font-size: 1.01rem;
  transition: color 0.17s;
}
.footer-bottom-bar a:hover { color: #fff; }
@media (max-width: 950px) {
  .footer-upper, .footer-bottom-bar, .footer-social-contact-row { 
    flex-direction: column; align-items: flex-start; gap: 21px; max-width: 96vw; }
  .footer-link-cols { flex-direction: column; gap: 14px; }
}

/* ---------------------------------------------
   RESPONSIVE ENHANCEMENTS FOR LAPTOP & MOBILE
--------------------------------------------- */

/* --- LARGE LAPTOPS (≤1440px) --- */
@media (max-width: 1440px) {
  .header-section { max-width: 1200px; padding: 60px 5vw 30px; }
  .header-content h1 { font-size: 54px; }
  .header-content p { font-size: 20px; }
}

/* --- LAPTOPS / SMALL DESKTOPS (≤1200px) --- */
@media (max-width: 1200px) {
  .header-section { flex-direction: row; gap: 40px; }
  .header-content h1 { font-size: 48px; }
  .header-content p { font-size: 19px; }
  .lawshield-plans .plan-card { flex-direction: column; }
  .lawshield-plans .plan-image { max-width: 100%; height: 250px; }
  .image-grid { width: 90%; height: auto; }
}

/* --- TABLETS (≤900px) --- */
@media (max-width: 900px) {


  /* Stack hero section */
  .header-section {
    flex-direction: column; /* ← corrected! */
    text-align: center;
    padding: 60px 5vw;
  }
  .header-image {
    margin-left: 0;
    width: 80vw;
    margin-bottom: 18px;
    margin-top: 0;
  }
  .header-content h1 { font-size: 38px; }
  .header-content p { font-size: 18px; }
  .header-image {
    width: 80%;
    height: auto;
    margin: 0 auto 24px;
  }

  /* Plans Section */
  .lawshield-plans .plan-card {
    flex-direction: column;
    text-align: center;
  }
  .lawshield-plans .plan-content { padding: 20px; }
  .lawshield-plans .plan-image img {
    height: 220px;
    object-fit: cover;
  }

  /* Core protections */
  .protections-grid {
    flex-direction: column;
    align-items: center;
  }
  .flip-card {
    min-width: 80%;
    height: auto;
  }

  /* Footer */
  .footer-upper, .footer-link-cols, .footer-social-contact-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }
  .footer-logo { margin: 0 auto; }
  .footer-bottom-bar { flex-direction: column; text-align: center; gap: 10px; }
}

/* --- MOBILES (≤600px) --- */
@media (max-width: 600px) {
  body { font-size: 15px; }

  /* Hero */
  .hero-section, .hero-bg img { height: 70vh; }
  .hero-content { left: 6vw; bottom: 10vw; }
  .hero-content h1 { font-size: 1.9rem; line-height: 1.2; }
  .hero-btn { font-size: 1rem; padding: 0.6em 1.6em; }

  /* Content sections */
  .intro-flexbox { flex-direction: column; padding: 20px; gap: 16px; }
  .intro-text { font-size: 1rem; }
  .image-grid { width: 100%; grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .content img, .second-content img { width: 80%; margin: 0 auto; }

  /* Text boxes */
  .first-text-box, .second-text-box {
    position: static;
    transform: none;
    margin: 20px auto;
    text-align: center;
  }

  /* Attorneys section */
  .attorney-card-row { flex-direction: column; gap: 28px; }
  .attorney-photo-border {
    width: 90%;
    height: auto;
  }
  .attorney-photo { width: 100%; height: auto; }
  .attorney-heading { font-size: 1.9rem; }

  /* Footer */
  .footer-section { padding: 40px 0; }
  .footer-tagline, .footer-link-col a, .footer-legal-text {
    font-size: 0.9rem;
  }
}

/* --- SMALL MOBILES (≤400px) --- */
@media (max-width: 400px) {
  .header-content h1 { font-size: 1.6rem; }
  .header-content p { font-size: 0.95rem; }
  .btn-red, .btn-yellow {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  .hero-btn {
    font-size: 0.9rem;
    padding: 0.6em 1.4em;
  }
  .footer-contact { font-size: 0.85rem; }
}
@media (max-width: 900px) {
  .protections-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 18px !important;
    box-sizing: border-box;
    overflow: visible !important;
  }
  .flip-card {
    width: 99vw !important;
    max-width: 99vw !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .flip-card-inner,
  .flip-card-front,
  .flip-card-back {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    padding: 16px 6px !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
  }
}
@media (max-width: 600px) {
  .flip-card {
    max-width: 100vw !important;
    padding: 0 !important;
  }
  .flip-card-inner,
  .flip-card-front,
  .flip-card-back {
    padding: 11px 2vw !important;
    font-size: 0.98rem !important;
  }
}


