/* Reset styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  padding-top: 56px; /* Adjust this value to match the height of your navbar */
  color: #22313f;
  background-color: #f8fafb;
}

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

:root {
  --primary: #1b3f57;
  --accent: #66b3cc;
  --warm: rgb(174, 92, 74);
  --paper: #ffffff;
  --shadow-soft: 0 8px 24px rgba(27, 63, 87, 0.08);
}

/* Optional: Adjusting the spacing of the rest of the page content */
.container {
  margin-top: 20px;
}

/* Ensure other elements are not affected by the fixed navbar */
.navbar.fixed-top {
  z-index: 1030; /* Ensure the navbar is above other elements */
  box-shadow: 0 8px 24px rgba(27, 63, 87, 0.08);
}

.navbar {
  border-bottom: 1px solid rgba(27, 63, 87, 0.08);
}

/* Header styles */
header {
  background-color: #ffffff;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 300; /* Thin font weight */
  color: #1b3f57;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: rgb(117, 117, 117) .3px solid;
}

nav a {
  margin: 0 10px;
  color: #1b3f57;
  text-decoration: none;
  font-weight: 300;
}

nav a:hover {
  text-decoration: none;
  color: #66b3cc;
}

.logo {
  width: 190px; /* Adjust the width to your desired size */
  height: auto; /* Maintain aspect ratio */
  margin: -8px;
}

.nav-link .phone-number {
  margin-right: 15px; /* Adjust the space as needed */
}

.nav-link .call-to-action {
  font-weight: bold; /* Optional: Make the call-to-action text bold */
}

/* Main banner styles */
.banner {
  background-image: url('/static/images/backgroundbanner.v2.avif');
  background-size: cover;
  background-position: center;
  height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner h1 {
  font-size: 24px;
  color: #1b3f57;
  text-align: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  font-weight: 300;
  box-shadow: var(--shadow-soft);
}

.welcome-banner {
  padding: 50px;
  text-align: center;
}

.welcome-banner h2 {
  font-size: 24px;
  color: #1b3f57;
  margin-bottom: 20px;
  font-weight: 300;
}

/* Welcome message styles */
.welcome {
  padding: 50px;
  background-color: #ffffff;
  text-align: center;
}

.welcome h2 {
  font-size: 24px;
  color: #1b3f57;
  margin-bottom: 20px;
  font-weight: 500;
}

.welcome button{
  padding: 10px 20px;
  background-color: #1b3f57;
  color: #ffffff;
  border: none;
  margin-top: 24px;
  margin-bottom: 24px;
  border-radius: 999px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s;
  box-shadow: var(--shadow-soft);
}

/* Services section styles */
.services {
  padding: 50px;
  background-color: #ffffff;
  text-align: center;
  font-weight: 300;
  margin-bottom: 36px;
}

.services h2 {
  font-size: 24px;
  color: #1b3f57;
  margin-bottom: 20px;
}

.service-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center items horizontally */
  gap: 20px; /* Add some spacing between service items */
}

.service {
  flex: 1;
  min-width: 200px; /* Set a minimum width to ensure consistency */
  max-width: 300px; /* Set a maximum width for responsiveness */
  min-height: 200px; /* Ensure square size */
  padding: 20px;
  border: 1px solid #66b3cc;
  border-radius: 14px;
  background-color: #ffffff;
  margin: 10px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(27, 63, 87, 0.14);
}

.service h2 {
  font-size: 24px;
  color: #1b3f57;
  font-weight: 300;
}

.service h3 {
  font-size: 20px;
  color: #1b3f57;
  font-weight: 300;
}

.fa-file-alt {
  color: #1b3f57;
}

.fa-gavel {
  color: #1b3f57;
}

.fa-briefcase {
  color: #1b3f57;
}

/* Media query for smaller screens */
@media screen and (max-width: 768px) {
  .service {
      flex-basis: calc(50% - 20px); /* Make each service take up 50% of the container width */
  }
}

/* Testimonials styles */
.testimonials {
  padding: 50px;
  background-color: #1b3f57; /* Change background color to dark */
  text-align: center;
  color: #ffffff; /* Set text color to white for better contrast */
}

.testimonial {
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 10px;
}

.testimonial .stars {
  color: #66b3cc; /* Set the color of the stars */
  font-size: 24px;
}

.testimonial p {
  font-style: italic;
  color: #ffffff;
  margin-bottom: 32px;
  margin-top: 24px;
}

.testimonial img {
  width: min(100%, 760px);
  height: auto;
  border-radius: 14px;
  margin-top: 10px; /* Add some space between the text and the image */
  box-shadow: var(--shadow-soft);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.testimonials .testimonial img {
  width: min(100%, 760px);
  max-height: 520px;
  object-fit: cover;
}


.testimonial img:hover {
  transform: none;
}

.testimonials button {
  padding: 10px 20px;
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #66b3cc;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 24px;
}

.testimonials button:hover {
  background-color: #66b3cc;
}

.testimonial h2 {
  font-size: 24px;
  color: #1b3f57;
  font-weight: 320;
}

.testimonials h2 {
  font-size: 24px;
  color: #ffffff;
  font-weight: 320;
}

/* Call-to-action styles */
.cta {
  padding: 50px;
  background-color: #ffffff;
  text-align: center;
}

.cta h3 {
  font-size: 24px;
  color: #1b3f57;
  margin-bottom: 20px;
  font-weight: 500;
}

.cta a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ffffff;
  color: #66b3cc;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.cta a:hover {
  background-color: #1b3f57;
  color: #ffffff;
}

.cta img {
  width: 100%;
  max-width: 960px;
  height: 360px;
  object-fit: cover;
  object-position: center 38%;
  border-radius: 14px;
  margin: 10px auto 0;
  box-shadow: var(--shadow-soft);
  display: block;
}

.cta button{
  display: block;
  padding: 10px 20px;
  background-color: rgb(174, 92, 74);
  color: #ffffff;
  border: none;
  margin: 24px auto 0;
  margin-bottom: 24px;
  border-radius: 999px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s;
  box-shadow: var(--shadow-soft);
}

.cta button:hover {
  background-color: rgb(128, 54, 37);
}

/* Footer styles */
footer {
  padding: 20px;
  background-color: #333333;
  color: #ffffff;
  text-align: center;
}

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

footer a:hover {
  text-decoration: underline;
}

/* Button styles */
.welcome-banner button {
  padding: 10px 20px;
  background-color: rgb(174, 92, 74);
  color: #ffffff;
  border: none;
  margin-top: 24px;
  margin-bottom: 24px;
  border-radius: 999px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s;
  box-shadow: var(--shadow-soft);
}

.welcome-banner button:hover {
  background-color: rgb(128, 54, 37);
}

/* Media query for desktop screens */
@media screen and (min-width: 768px) {
  .container {
      width: 80%;
      margin: 0 auto;
  }

  .service {
      flex-basis: calc(33.33% - 20px); /* Three columns */
  }

}



    /* CSS styles */
    .mobile-nav {
        display: none; /* Hide the mobile navigation menu by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        z-index: 999;
    }
    
    .mobile-nav.active {
        display: block; /* Show the mobile navigation menu when active */
    }
    
    .mobile-nav-toggle {
        cursor: pointer;
    }
    
    .mobile-nav a {
        display: block;
        padding: 10px 20px;
        color: #1b3f57;
        text-decoration: none;
    }
    
    .mobile-nav a:hover {
        background-color: #f2f2f2;
    }
    
    /* Media query for smaller screens */
    @media screen and (min-width: 768px) {
        .mobile-nav-toggle {
        display: none; /* Hide the toggle button for larger screens */
        }
    }
    
    /* Contact form styles */
    .contact-form {
      padding: 50px;
      background-color: #ffffff;
      text-align: center;
      font-weight: 300;
    }

.contact-form-page {
      padding: 50px;
      background-color: #ffffff;
      text-align: center;
      font-weight: 300;
  border-radius: 16px; /* Rounded corners */
  box-shadow: var(--shadow-soft);
}

    .contact-form h2 {
      font-size: 24px;
      color: #1b3f57;
      margin-bottom: 20px;
      text-align: center; /* Center the heading */
    }

    .contact-form-page h2 {
      font-size: 32px;
      color: #1b3f57;
      margin-bottom: 20px;
      text-align: center; /* Center the heading */
    }

    .contact-form .form-group {
      margin-bottom: 15px;
      text-align: left;
    }

    .contact-form-page .form-group {
      margin-bottom: 15px;
      text-align: left;
    }

    .contact-form label {
      margin-bottom: 5px;
      color: #1b3f57;
    }

    .contact-form-page label {
      margin-bottom: 5px;
      color: #1b3f57;
    }

    .contact-form input[type="text"],
    .contact-form input[type="tel"],
    .contact-form input[type="email"],
    .contact-form select {
      width: 100%;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 5px;
      margin-bottom: 10px;
    }

    .contact-form-page input[type="text"],
    .contact-form-page input[type="tel"],
    .contact-form-page input[type="email"],
    .contact-form-page select {
      width: 100%;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 5px;
      margin-bottom: 10px;
    }

    .contact-form-page input[type="checkbox"] {
      margin-right: 10px;
    }

    .checkbox-container {
      display: flex;
      align-items: center;
      margin-bottom: 5px;
    }

.contact-form .btn {
      padding: 10px 20px;
      background-color: rgb(174, 92, 74);
      color: #ffffff;
      border: none;
      margin-top: 24px;
      margin-bottom: 24px;
      border-radius: 999px;
      font-size: 18px;
      cursor: pointer;
      transition: background-color 0.3s;
      box-shadow: var(--shadow-soft);
    }
    .contact-form-page .btn {
      padding: 10px 20px;
      background-color: rgb(174, 92, 74);
      color: #ffffff;
      border: none;
      margin-top: 24px;
      margin-bottom: 24px;
      border-radius: 999px;
      font-size: 18px;
      cursor: pointer;
      transition: background-color 0.3s;
      box-shadow: var(--shadow-soft);
    }

    .contact-form .btn:hover {
      background-color: rgb(128, 54, 37);
    }
    .contact-form-page .btn:hover {
      background-color: rgb(128, 54, 37);
    }

    .contact-form .form-image {
      width: 100%; /* Make the image fill the width of its parent div */
      max-width: 100px; /* Set a maximum width to prevent it from becoming too large */
      margin-top: 20px; /* Add some space between the button and the image */
      border-radius: 10px; /* Optional: Add border-radius for rounded corners */
      display: block; /* Ensure the image is displayed as a block element */
      margin-left: auto; /* Center the image */
      margin-right: auto; /* Center the image */
    }
    .contact-form-page .form-image {
      width: 100%; /* Make the image fill the width of its parent div */
      max-width: 100px; /* Set a maximum width to prevent it from becoming too large */
      margin-top: 20px; /* Add some space between the button and the image */
      border-radius: 10px; /* Optional: Add border-radius for rounded corners */
      display: block; /* Ensure the image is displayed as a block element */
      margin-left: auto; /* Center the image */
      margin-right: auto; /* Center the image */
    }


/* Animation styles */
      .fade-in {
        opacity: 0;
        transform: translateX(-50px);
        transition: opacity 1s ease-out, transform 1s ease-out;
    }
    
    .fade-in.visible {
        opacity: 1;
        transform: translateX(0);
    }


/* About Me page */

.about-description {
  padding: 50px;
  background-color: #ffffff;
  line-height: 1.5;
  text-align: left;
  font-size: 18px;
}

.welcome .testimonial img,
.about-description .testimonial img {
  width: min(100%, 600px);
}

.about-description h2 {
  font-size: 24px;
  color: #1b3f57;
  margin-bottom: 20px;
  font-weight: 500;
  text-align: center;
}

.about button{
  padding: 10px 20px;
  background-color: #1b3f57;
  color: #ffffff;
  border: none;
  margin-top: 24px;
  margin-bottom: 24px;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s;
  box-shadow: #000000 1px 1px 4px;
}


.about-banner {
  padding: 50px;
  text-align: center;
}

.about-banner h2 {
  font-size: 24px;
  color: #1b3f57;
  margin-bottom: 20px;
  font-weight: 300;
}

.about-banner button{
  padding: 10px 20px;
  background-color: rgb(174, 92, 74);
  color: #ffffff;
  border: none;
  margin-top: 24px;
  margin-bottom: 24px;
  border-radius: 999px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s;
  box-shadow: var(--shadow-soft);
}

.cta-about button{
  padding: 10px 20px;
  background-color: #1b3f57;
  color: #ffffff;
  border: none;
  margin-top: 24px;
  margin-bottom: 24px;
  border-radius: 999px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s;
  box-shadow: var(--shadow-soft);
}


  
  /* Call-to-action styles */
  .cta-about {
    padding: 50px;
    background-color: #ffffff;
    text-align: center;
  }
  
  .cta-about a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffffff;
    color: #66b3cc;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
  }
  
  .cta-about a:hover {
    background-color: #1b3f57;
    color: #ffffff;
  }

  .cta-about img {
    width: min(100%, 900px);
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 14px;
    margin-top: 10px; /* Add some space between the text and the image */
    box-shadow: var(--shadow-soft);
  }



  .cta-about button:hover {
      background-color: rgb(128, 54, 37);
  }
    

  /* Universal Page Stuff*/

  .banner-page p {
    font-size: 18px;
    color: #1b3f57;
    text-align: center;
    padding: 20px;
    background-color: rgb(255, 255, 255);
    font-weight: 300;
    box-shadow: #000000 0px 0px 10px;
  }

  .banner-page {
    background-image: url('/static/images/backgroundbanner.v2.avif');
    background-size: cover;
    background-position: center;
    height: 350px; 
    display: flex;
    justify-content: center;
    align-items: center;
    filter: grayscale(100%);
}



/* Wills and Trusts Page */

  .willstrusts img {
    width: 100%;
    max-width: 900px;
    height: 420px;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    margin: 10px auto 0;
    box-shadow: var(--shadow-soft);
    display: block;
  }

  .willstrusts img:hover {
    transform: none;
  }

@media screen and (min-width: 768px) {
  .welcome .testimonial img,
  .about-description .testimonial img {
    width: min(100%, 500px);
  }

  .cta img {
    height: 400px;
  }

  .willstrusts img {
    height: 480px;
  }
}


/* Probate Services page */

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

.cta-probate button{
  padding: 10px 20px;
  background-color: #1b3f57;
  color: #ffffff;
  border: none;
  margin-top: 24px;
  margin-bottom: 24px;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s;
  box-shadow: #000000 1px 1px 4px;
}
