/* Global Styles */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  overflow: scroll !important;
  padding-right: 0 !important;
  /* Override the default padding */
}

/* Nav Section */
.header-image {
  text-align: center;
  background: url(images/nav_image.jpeg) no-repeat center;
  background-size: cover;
  height: 100vh;
  position: relative;
  /* ensure overlayed children (e.g., Calendly button) can be positioned */
  z-index: 0;
}

.subtitle {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1;
  color: #30574d;
}

#myNav.offset,
.sticky {
  background-color: #9b3432;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  animation: fadeIn 0.5s;
  z-index: 999;
}

#myNav {
  background-color: #1e110b;
  /* Solid color */
  list-style: none;
  font-weight: bold;
  width: 100%;
  text-align: center;
}

#myNav a {
  flex-grow: 1;
  text-align: center;
}

.getQuote {
  background-color: #9b3432;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  margin-left: 15px;
}

/* Scroll Arrow */
.scroll-arrow {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 16px;
  color: #fff;
  background-color: #9b3432;
  border-radius: 10%;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
  z-index: 999;
  display: block;
  cursor: pointer;
}

.scroll-arrow:hover {
  background-color: #30574d;
  transform: scale(1.1);
  color: #fff;
}

/* Responsive Styling for Small Screens */
@media screen and (max-width: 768px) {
  .scroll-arrow {
    font-size: 20px;
    padding: 8px;
  }
}

/* Info Section */
#infoDisplay:hover {
  color: #9b3432;
  cursor: pointer;
}

#info,
#infoDisplay {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-evenly;
  padding: 25px;
  background-color: #fff;
  color: #30574d;
  margin-top: 75px;
}

#infoDisplay div {
  clear: both;
}

#infoDisplay {
  flex-flow: column;
  margin-top: 100px;
  width: 65%;
  text-align: center;
}

/* Benefits Section */
#benefits {
  background-color: #9b3432;
  padding: 25px;
  color: #fff;
  text-align: center;
  /* Center the content */
}

.benefits-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center the items horizontally */
  justify-content: center;
  /* Center the items vertically */
}

.benefits-buttons {
  display: flex;
  flex-direction: row;
  /* Display buttons horizontally */
  justify-content: space-evenly;
  margin: 0.8em;
}

.benefit,
.step-text {
  border: none;
  margin: 0.8em;
  /* Add spacing between buttons */
  padding: 15px;
  background-color: #30574d;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
  flex: 1;
  /* Distribute available space evenly among buttons */
}

.benefit:hover {
  background-color: #9b3432;
}

.benefit-description {
  display: none;
  text-align: left;
  /* Align descriptions to the left */
  padding: 20px;
  /* Add spacing around descriptions */
}

.highlight {
  color: #fff;
  font-weight: bold;
  font-size: 1.2em;
  /* Increase font size */
  text-shadow: 3px 3px 4px #30574d;
  /* Add text outline */
}

/* Center h2 */
h2 {
  text-align: center;
}

/* Portfolio Section */
#portfolio {
  text-align: center;
  padding: 25px;
  margin: 75px 50px 100px;
}

.house>img {
  width: 19%;
  height: 150px;
  margin: 2px;
}

#houses {
  box-shadow: 0px 5px 5px darkgray;
  border-radius: 3px;
  width: 80%;
  margin: auto;
}

#portfolio>h2 {
  color: #9b3432;
}

#highlightHome,
#compareSection {
  color: #30574d;
  font-weight: bold;
  font-size: 1.2em;
  /* Increase font size */
}

/* Compare Section */
#compare {
  padding: 25px;
  margin-bottom: 60px;
}

table {
  margin: auto;
  background-color: white;
  border-collapse: collapse;
  width: 80%;
  box-shadow: 0px 5px 5px darkgray;
}

#comparison-table tbody tr:last-child:hover {
  border: 10px solid #9b3432;
  /* Change to your desired hover border color */
}

td.company img:hover,
td.greenChecks:hover {
  transform: scale(2.0);
  /* Adjust the scale factor as needed */
  transition: transform 0.2s ease;
  /* Add a smooth transition effect */
}

table.comparison {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid black;
  font-size: 24px;
  margin-top: 20px;
}

table.comparison th {
  text-align: center;
  background-color: #30574d;
  color: white;
  border: 1px solid black;
  padding: 10px;
}

table.comparison td {
  border: 1px solid black;
  padding: 10px;
  text-align: center;
}

tr.check:nth-child(even) {
  background-color: #f3ebeb;
}

tr.check:nth-child(odd) {
  background-color: #e0d8d8;
}

.redX {
  color: #9b3432;
}

.greenChecks {
  color: #30574d;
}

/* Base Styles */
#easySteps h2 {
  color: #fff;
}

/* Step Box Styles */
#steps {
  width: 80%;
  margin: auto;
  border: 15px solid white;
  box-shadow: 0px 5px 5px darkgray;
  background-color: rgb(243, 235, 235);
  display: flex;
  flex-flow: row;
  justify-content: center;
  align-items: center;
}

/* Steps Section */
#easySteps {
  padding: 25px;
  background-color: #9b3432;
  margin-top: 45px;
}

/* Step Card Styles */
.step-card {
  text-align: center;
  padding: 20px;
  border: 1px solid lightgray;
  background-color: rgb(243, 235, 235);
  box-shadow: 0px 5px 5px darkgray;
  transition: background-color 0.3s;
  color: #9b3432;
}

/* Add styles for the image */
.step-image {
  width: 100%;
  height: 250px;
  padding: 10px;
  margin-bottom: 10px;
}

.step-card:hover {
  background-color: #30574d;
}

.card-text,
#faq h2 {
  color: #30574d;
}

/* Step Text Styles */
.step-text {
  font-size: 1.5rem;
  margin-top: 10px;
  background-color: #9b3432;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.step-text.active {
  background-color: #30574d;
}

.step-text:hover {
  color: #fff;
}

/* Step Description Styles */
.step-description {
  display: none;
  color: #30574d;
}

/* Step Icons Styles */
.step-icons {
  margin-top: 10px;
}

.icon-link {
  font-size: 1.5rem;
  margin-right: 10px;
  color: #9b3432;
}

.icon-link:hover {
  color: #30574d;
}

/* Initially Hide Elements with Transition */
.step-icons,
.step-image,
.step-description {
  display: none;
  transition: display 0.5s;
}

#process {
  width: 60%;
  padding: 0px 0px 10px 20px;
}

#processSteps {
  height: 100px;
}

#processSteps>p {
  display: none;
}

#checklist {
  width: 20%;
  height: 210px;
}

/* Area Section */
#area {
  padding: 50px 0;
  background-color: #f3ebeb;
  margin-top: 60px;
  margin-bottom: 60px;
}

.area-description h2 {
  font-size: 36px;
  color: #30574d;
}

.area-description p {
  font-size: 24px;
  color: #30574d;
  margin-bottom: 20px;
}

.area-image {
  text-align: right;
}

.area-image img {
  max-width: 90%;
  height: auto;
  box-shadow: 0px 5px 5px darkgray;
  border: 5px solid #9b3432;
  border-radius: 10px;
}

/* Frequently Asked Questions Section */
#faq {
  margin: 50px 0;
  background-color: #f3ebeb;
  padding: 20px;
}

/* Base .card (used across sections) */
.card {
  border: 3px solid #9b3432;
  box-shadow: 0px 5px 5px darkgray;
  padding: 15px;
  margin-bottom: 20px;
  background-color: white;
  text-align: center;
}

/* FAQ card interactive states (scoped to container so other cards keep their look) */
#faq-container .card {
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid #9b3432;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Remove text-only highlight on question title */
#faq-container .card .questions,
#faq-container .card .card-title {
  background: transparent !important;
}

/* Entire box highlights on hover */
#faq-container .card:hover {
  background-color: #e9dddd;
  border-color: #7a2422;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Keep it highlighted when open */
#faq-container .card.open {
  background-color: #e9dddd;
  border-color: #7a2422;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* Question row + plus icon */
.questions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

/* Remove the old partial-highlight on question hover in favor of full-card hover */
.questions:hover {
  background-color: transparent;
  /* overridden by card hover */
}

/* Plus icon base */
.plus {
  background-color: #30574d;
  color: white;
  padding: 5px 10px;
  margin-left: 10px;
  border-radius: 50%;
  font-size: 20px;
}

/* FAQ-specific plus: larger, centered circle, persistent sizing */
#faq-container .card .card-title.questions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
}

#faq-container .plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background-color: #2f6156;
  /* green */
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  transition: background-color .25s ease;
}

/* When open, change color (no rotation so '+' stays visible if you toggle text to '-') */
#faq-container .card.open .plus {
  background-color: #9b3432;
  /* brand red */
}

/* Answer body */
.answer {
  display: none;
  text-align: justify;
}

/* Footer Section */
footer {
  text-align: center;
  background: url(images/footer_light.jpeg) no-repeat center;
  background-size: cover;
  height: 475px;
  padding: 50px 50px 20px 50px;
}

h1 {
  color: white;
}

#footerLinks {
  display: flex;
  flex-flow: row;
  padding-top: 30px;
}

#linkLeft {
  width: 50%;
  color: white;
  text-align: left;
  padding-top: 25px;
}

ul {
  list-style-type: none;
}

#linkLeft>img {
  margin-left: 70px;
}

.social {
  width: 30px;
  height: 30px;
  padding-top: 5px;
}

#linkRight {
  width: 50%;
}

#countyMap {
  width: 200px;
  height: 160px;
  padding-bottom: 10px;
  border-radius: 3px;
}

/* Get Quote Section */
#getQuote {
  display: none;
  position: fixed;
  top: 0;
  width: 100%;
}

#quoteForm {
  margin: 50px auto;
  text-align: center;
  width: 100%;
  padding: 20px;
  border: 2px solid rgb(243, 235, 235);
  border-radius: 5px;
  box-shadow: 5px 5px 5px lightgray;
  background-color: white;
}

input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 16px;
}

label {
  display: block;
  margin-bottom: 5px;
}

.modal-header {
  margin: 0;
  background: none;
}

#submit,
#cancel {
  width: 100%;
  padding: 10px;
  border-radius: 3px;
  cursor: pointer;
}

#submit {
  background-color: #30574d;
  color: white;
  border: none;
}

#cancel {
  background-color: #9b3432;
  color: white;
  border: none;
}

.error-message {
  color: #9b3432;
  margin-top: 10px;
}

/* === Fixed navbar anchor offset & smooth scrolling (global) === */
html {
  --nav-h: 80px;
  /* fallback; JS will set actual height */
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

/* Any element you jump to with #id lands below the fixed nav */
section[id],
.nextSection,
[id]:not(html) {
  scroll-margin-top: var(--nav-h);
}

/* Only add top padding when nav is actually fixed */
body.nav-fixed {
  padding-top: var(--nav-h);
}

/* Calendly CTA button */
.calendly-btn {
  margin-top: 1.25rem;
  background-color: #b30000;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: filter .2s ease;
  color: #fff;
}

.calendly-btn:hover {
  filter: brightness(1.1);
}