/*=====================================================
 :root & Global Reset / Base Styles
=====================================================*/

html {
  font-size: 20px;
}

:root {
  --primary-color: #2c3e50;       /* For h1, h2, h3, a, li */
  --secondary-color: #34495e;     /* For hover effects and accents */
  --accent-color: #e74c3c;        /* Can be used for calls-to-action if desired */
  --text-color: #555;             /* Body text */
  --subtext-color: #7f8c8d;       /* Secondary text */
  --background-light: rgb(232, 244, 255);     /* Light background sections */
  --body-bg: #fff;               /* Main background */
  --dark-bg: #2c3e50;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
h1 {
  font-family: 'Montserrat', sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

body, h2, h3, h4, h5, h6, p, li, a {
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
  font-weight: 400;
  font-style: normal;
  color: var(--text-color);
  background-color: var(--body-bg);
}


/* Global Typography for headings and list items */
h1, h2, h3, a, li {
  color: var(--primary-color);
}

/*=====================================================
  Navbar Section
=====================================================*/
.navbar {
  background: var(--body-bg);
  border-bottom: 1px solid #ddd;
  padding: 10px 20px;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;  /* Limits the width so nav items don't go too far right on large screens */
  margin: 0 auto;
}

.logo img {
  height: 50px; /* Adjust as needed */
}

.nav-menu ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-menu ul li {
  margin-left: 20px;
}

.nav-menu ul li a {
  text-decoration: none;
  color: var(--primary-color);
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-menu ul li a:hover {
  color: var(--secondary-color);
}

/* New Sign Up Button */
.signup-btn {
  display: inline-block;
  padding: 8px 16px;
  border: 2px solid  var(--primary-color); /* Blue border */
  background: transparent;
  color:  var(--primary-color);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  margin-left: 20px; /* Adds spacing from the nav-menu */
}

.signup-btn:hover {
  background:  var(--primary-color);
  color: #fff;
}

/* Hide the nav menu on small screens but leave the Sign Up button visible */
@media (max-width: 767px) {
  .nav-menu {
    display: none;
  }
}


/*=====================================================
  Introductory Banner
=====================================================*/
.intro-banner {
  background-color: var(--body-bg);
  text-align: center;
  padding: 20px 0;
}

.intro-banner h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.intro-banner p {
  font-size: 1.1rem;
  color: var(--text-color);
}

/*=====================================================
  Top Images Section
=====================================================*/
/* Top Images Section Default */
.top-images {
  display: block;
  overflow: hidden;
  background-color: var(--body-bg);
  border-bottom: 1px solid #ddd;
}

.top-images img {
  width: 100%;
  object-fit: cover;
  height: auto;
  margin-bottom: 10px;
}

/* Very Small Screens (below 576px): Show only 1 image */
@media (max-width: 575px) {
  .top-images img:nth-child(n+2) {
    display: none;
  }
}

/* Medium Screens (576px to 767px): Show 2 images side-by-side */
@media (min-width: 576px) and (max-width: 767px) {
  .top-images {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .top-images img {
    width: 50%;
    height: 300px;
    margin-bottom: 0;
    border-right: 3px solid var(--body-bg);
  }
  /* Remove border from the second image */
  .top-images img:nth-child(2) {
    border-right: none;
  }
  /* Hide any images beyond the first two */
  .top-images img:nth-child(n+3) {
    display: none;
  }
}

/* Larger Screens (768px and above): Show all 3 images */
@media (min-width: 768px) {
  .top-images {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .top-images img {
    width: 33.33%;
    height: 300px;
    margin-bottom: 0;
    border-right: 3px solid var(--body-bg);
  }
  .top-images img:last-child {
    border-right: none;
  }
}
@media (min-width: 1200px) {
  .top-images {
    max-width: 1200px; /* Set a fixed maximum width */
    margin: 0 auto;    /* Center the container horizontally */
  }
}


/*=====================================================
  Hero Section
=====================================================*/
.hero {
  padding: 40px 20px;
  text-align: center;
  background-color: var(--body-bg);
}

.hero h2 {
  font-size: 1.75rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.hero p {
  font-size: 1rem;
  margin-bottom: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.cta-button {
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: var(--secondary-color);
}

/* Responsive Hero */
@media (min-width: 768px) {
  .hero {
    padding: 60px 20px;
  }
  .hero h2 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1.1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

/*=====================================================
  Services Section
=====================================================*/
/* Base styling */
.services {
  padding: 60px 20px;
  margin: 40px 0;
  background-color: var(--background-light);
  text-align: center;
}

.services h2 {
  font-size: 1.75rem;
  margin-bottom: 30px;
  color: var(--primary-color);
  background-color: transparent;
}

.service-items {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.service-item {
  background: var(--body-bg);
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 300px;  /* This keeps the box width similar to your original design */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.service-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.service-item p {
  font-size: 0.9rem;
}

/* Larger screens adjustments */
@media (min-width: 768px) {
  .service-items {
    flex-direction: row;
    flex-wrap: wrap;      /* Allow wrapping if needed */
    justify-content: center;
    align-items: stretch; /* Ensure all boxes in a row have equal height */
  }
  
  /* Remove flex-grow so that boxes maintain the max-width of 300px */
  .service-item {
    flex: 0 0 auto;
    width: 90%;
    max-width: 300px;
  }
}


/*=====================================================
  Insurance Partners Carousel Section
=====================================================*/
.partners-carousel {
  background-color: #fff;
  padding: 40px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin: 20px auto;
  max-width: 800px;
}

.partners-carousel h2 {
  font-size: 1.75rem;
  color: var(--primary-color); /* use your global variable or replace with a color */
  margin-bottom: 20px;
}

/* Carousel container */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

/* The scrollable track container */
.carousel-track-container {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  overflow-x: auto;
  scroll-behavior: smooth;
  /* Hide scrollbar for Firefox */
  scrollbar-width: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.carousel-track-container::-webkit-scrollbar {
  display: none;
}

/* The track holding all logo items */
.carousel-track {
  display: flex;
  gap: 50px;
}

/* Each logo item */
.carousel-item {
  flex: 0 0 auto;
}

.carousel-item img {
  height: 110px;
  width: auto;
  display: block;
  margin: auto;
}

/* Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #f1f1f1;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: var(--primary-color);
  z-index: 10;
  transition: background-color 0.3s ease;
}

.carousel-btn:hover {
  background-color: #e2e2e2;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

/* Responsive adjustments for the carousel on smaller screens */
@media (max-width: 768px) {
  .carousel-wrapper {
    position: relative;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .carousel-item img {
    height: 100px;  /* Increased from 36px to 100px for larger logos */
  }
  .carousel-btn {
    position: static;
    transform: none;
    width: 60px;
    height: 60px;
    font-size: 36px;
    margin: 5px;
  }
  .carousel-nav {
    /* Place the nav container at the bottom; center its items */
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}


/*=====================================================
  Info Section
=====================================================*/

.info-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  margin: 0 auto;
  max-width: 1200px; /* 💡 Prevent it from stretching too wide on big screens */
}

.info-content {
  text-align: center;
  max-width: 600px;
  margin-bottom: 20px;
}

.info-content h2 {
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.info-content h3 {
  font-size: 1.25rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.info-content p {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 20px;
  line-height: 1.6;
}

.info-button {
  background: var(--primary-color);
  text-decoration: none;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.info-button:hover {
  background: var(--secondary-color);
}

.info-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Responsive Layout */
@media (min-width: 768px) {
  .info-section {
    flex-direction: row;
    justify-content: center;
    gap: 60px; /* 💡 Keeps spacing comfortable */
    padding: 60px 40px;
  }

  .info-content {
    text-align: left;
    margin-bottom: 0;
    flex: 1;
  }

  .info-image {
    flex: 1;
    display: flex;
    justify-content: center;
  }
}


/*=====================================================
  Agent Section (Updated for a Professional Look)
=====================================================*/
.agent-section {
  padding: 40px 20px;
}

.agent-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
  background: var(--body-bg);
  padding: 40px;
}

.agent-photo img {
  width: 200px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.agent-details {
  max-width: 600px;
  text-align: left;
}

.agent-details h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.agent-details p {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 15px;
  line-height: 1.7;
}

.agent-details h3 {
  font-size: 1.25rem;
  color: var(--secondary-color);
  margin: 20px 0 10px;
}

.agent-features {
  list-style: none;  /* Remove default bullets */
  margin: 0;
  padding: 0;
}

.agent-features li {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.agent-features li i {
  color: var(--primary-color);
  margin-right: 10px;
}

/* Responsive: Side-by-side layout on larger screens */
@media (min-width: 768px) {
  .agent-section .container {
    flex-direction: row;
    align-items: center;    /* Vertically centers the image with the text */
    justify-content: center;
  }
  
  .agent-photo {
    flex: 0 0 auto;
  }
  
  .agent-details {
    flex: 1;
    margin-left: 40px;  /* Space between the image and text */
  }
}


/*=====================================================
  Testimonials Section
=====================================================*/
.testimonials {
  padding: 40px 20px;
  text-align: center;
}

.testimonials h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.testimonial-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.testimonial-item {
  background: var(--body-bg);
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 300px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.testimonial-item p {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-bottom: 10px;
}

.testimonial-item h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: bold;
}

/* Responsive Testimonials */
@media (min-width: 768px) {
  .testimonial-items {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
  }
}

/*=====================================================
  Map Section
=====================================================*/
.map-section {
  margin-top: 40px;
  padding: 40px 20px;
  text-align: center;
  background: var(--background-light);
}

.map-section h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.map-container {
  max-width: 1200px;
  margin: 0 auto;
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: 0;
}


/*=====================================================
  FAQ Section
=====================================================*/
.faq {
  padding: 40px 20px;
  background-color: var(--body-bg);
}

.faq h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-align: center;
}

.faq-container {
  max-width: 600px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-answer {
  display: none;
  margin-top: 10px;
  color: var(--text-color);
  font-size: 1rem;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}


/*=====================================================
  Footer Section
=====================================================*/
footer {
  background: var(--dark-bg);
  border-top: 1px solid #ddd;
  padding: 20px;
  color: white;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column; /* Stacks columns on mobile */
  gap: 20px;
  align-items: center;
}

.footer-container a {
  text-decoration: none;
  background: transparent;
}

/* Ensure all footer inner elements inherit the same color */
.footer-left *,
.footer-contact *,
.footer-nav *,
.footer-hours *,
.footer-copy * {
  background-color: transparent !important;
  color: white;
}

/* Left Column (Logo and Slogan) */
.footer-left {
  text-align: center;
}

.footer-left img {
  height: 50px;
  margin-bottom: 10px;
}

.footer-left p {
  font-size: 1rem;
}

/* Footer Column Headings:
   This new rule changes the heading style (h4) across footer sections 
   to be bold, uppercase, with a slight letter-spacing and an accent underline. */
.footer-contact h4,
.footer-nav h4,
.footer-hours h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 5px;
  margin-bottom: 15px;
}
footer a:active,
footer a:focus,
footer a:visited {
  color: white !important;
}

/* Center Column (Contact Information) */
.footer-contact {
  text-align: center;
}

.footer-contact p {
  margin: 5px 0;
  font-size: 0.9rem;
}

.footer-contact p a {
  text-decoration: none;
  transition: color 0.3s ease;
}


/* New Column: Hours */
.footer-hours {
  text-align: center;
  margin-top: 20px;
}

.footer-hours p {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Right Column (Quick Links Navigation) */
.footer-nav {
  text-align: center;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column; /* Stacked vertically on mobile */
  gap: 10px;
  text-align: left;  /* Ensures the list items align to the left */
}

.footer-nav ul li a {
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
  color: var(--secondary-color);
}

/* Footer Copy */
.footer-copy {
  text-align: center;
  margin-top: 20px;
  font-size: 0.8rem;
}

/* Desktop Layout: Columns Side by Side */
@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .footer-left,
  .footer-contact,
  .footer-hours,
  .footer-nav {
    flex: 1;
  }
  
  .footer-left {
    text-align: left;
    max-width: 300px;
  }
  
  .footer-contact {
    text-align: left;
    max-width: 400px;
    margin: 0 20px;
  }
  
  .footer-hours {
    text-align: left;
    max-width: 300px;
    margin: 0 20px;
  }
  
  /* Change .footer-nav alignment on desktop to left-aligned */
  .footer-nav {
    text-align: left;
    max-width: 300px;
  }
}



/*=====================================================
  Ultra-wide Screens Global
=====================================================*/
@media (min-width: 2100px) {
  body {
    max-width: 2100px;
    margin: 0 auto;
  }
}
