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


html {
  scroll-behavior: smooth;
}


/* Typography */
body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 500;
  line-height: 1.7;
  color: #333;
  background: #f9f9f9;
}


h1, h2, h3, h4, h5, h6,
.logo-text,
.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}


/* Header */
header {
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  padding: 5px 25px;
  position: sticky;
  top: 0;
  z-index: 1000;
}


.header-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}


.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px;
  text-decoration: none;
}


.logo img {
  height: 80px;
  vertical-align: middle;
  display: inline-block;
}


.logo-text {
  font-size: 1.75rem;
  font-weight: 700;
  color: #FF6B35;
  text-decoration: none;
  line-height: 1;
}


/* Nav Menu */
.nav-wrapper {
  display: flex;
  gap: 16px;
  align-items: center;
}


.nav-menu {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 1rem;
}


.nav-toggle {
  
  flex-direction: column;
  cursor: pointer;
}


.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 4px 0;
  transition: all 0.3s;
}


.nav-menu.show {
  display: flex;
  margin-top: 15px;
}


.nav-link,
header nav a,
.section-title {
  font-family: 'Poppins', Arial, Helvetica, sans-serif !important;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #00B3B3;
  text-decoration: none;
  transition: color 0.2s, box-shadow 0.2s, background 0.2s;
  border-radius: 5px;
  padding: 4px 12px;
}


.nav-link:hover {
  color: #00B3B3;
  background: #FF6B35;
  box-shadow: 0 4px 18px rgba(0,0,0,0.11), 0 1.5px 3px rgba(0,179,179,0.08);
}


.nav-link.active {
  color: #00B3B3;
  background: black;
  box-shadow: 0 4px 18px rgba(0,0,0,0.11), 0 1.5px 3px rgba(0,179,179,0.08);
  font-weight: 700;
}


/* CTA Button */
.cta-btn {
  background: #00B3B3;
  color: white;
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-block;
  text-align: center;
  margin: 20px auto;
  max-width: 250px;
  width: 100%;
  transition: background 0.3s ease, transform 0.2s ease;
}


.cta-btn:hover {
  background: #009999;
  transform: translateY(-2px);
}


/* Layout */
main {
  padding-top: 100px;
  max-width: 100%;
  margin-top: 0px;
  margin-bottom: 20px;
  padding: 0 20px;
  text-align: center;
}


h1 { font-size: 2.3rem; margin-bottom: 10px; font-weight: 700; }
h2 { font-size: 1.4rem; margin: 40px 0 10px; }
h3 { font-size: 1.3rem; color: #0077cc; margin-bottom: 40px; }
p { font-size: 1rem; color: #555; margin-bottom: 20px; }


ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 30px;
}


ul li::before {
  content: '✅';
  margin-right: 10px;
  color: #0077cc;
}


/* Sections */
.legal-page {
  text-align: left;
  max-width: 800px;
  margin: 80px auto;
  padding: 0 20px;
}


.homeowner-cta-section ul,
.contractor-cta-section ul,
.home-benefits-section ul {
  display: inline-block;
  text-align: left;
  margin-top: 20px;
}


.hero {
  width: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.1)),
              url("../assets/images/MRAskyline.png") center center / cover no-repeat;
  background-color: #222;
  color: white;
  text-align: center;
  padding: 80px 20px;
}


.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}


.hero-overlay {
  background: rgba(0, 0, 0, 0.55);
  padding: 40px 30px;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}


.hero h1, .hero p {
  color: white;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}




/* Grid */
.three-column {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: center;
  margin-top: 30px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}


.box {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 300px;
  text-align: left;
}


/* Video Wrapper */
.video-wrapper-vertical {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 40px auto;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}


.video-wrapper-vertical iframe {
  width: 100%;
  height: 100%;
  border: 0;
}


/* FAQ */
.faq-item {
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
  background: white;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 16px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}


.faq-item h3 {
  font-size: 1.1rem;
  color: #0077cc;
  margin-bottom: 8px;
}


.faq-answer {
  display: none;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}


.faq-item.open .faq-answer {
  display: block;
  max-height: 500px;
}


.faq-answer-inner {
  padding-top: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}


.faq-question {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
}


.arrow {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
  color: #0077cc;
}


.faq-item.open .arrow {
  transform: rotate(180deg);
  color: #FF6B35;
}


/* Footer */
footer {
  text-align: center;
  background: #333;
  color: white;
  padding: 40px 20px;
  margin-top: 100px;
}


.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}


.footer-links li {
  margin: 0;
}


.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}


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


/* Mobile: toggle via hamburger on small screens */
@media (max-width: 700px) {
  main {
    padding-top: 100px; /* or whatever your navbar height is */
  }
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
  }
 
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    /*padding: 10px 16px;*/
  }


   .logo {
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
  }
  .logo img {
    height: 80px;
  }
  .logo-text {
    font-size: 1.75rem;
    white-space: nowrap;
    /*overflow:*/
    text-overflow: ellipsis;
    margin-left: 0px;
  }


  /* Dropdown container, anchored at top right, auto width */
  .nav-wrapper {
    position: absolute;
    top: 100%;       /* immediately under header */
    right: 0;         /* align to header’s left edge */
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
    width: auto;     /* only as wide as its contents */
    z-index: 999;
  }


  /* Hamburger always on right */
  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    margin-left: auto;
  }


    /* Hide menu by default */
  .nav-menu {
    display: none;
    width: auto;
  }
  .nav-menu.show {
    display: flex;
    flex-direction: column;
  }


  /* Menu links */
  .nav-link {
    display: block;
    padding: 12px 16px;
    white-space: nowrap;           /* prevent wrap */
    color: #00B3B3;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
  }
  .nav-link:last-child {
    border-bottom: none;
  }
  .nav-link:hover {
    background: #f2f2f2;
  }
  .nav-link.active {
    background: #e6fff9;
    font-weight: 700;
  }
  .faq-question {
  justify-content: center;
  text-align: center;
  flex-direction: column;
}



  /* rest of your mobile rules… */
  .hero { padding: 0 16px; }
  .three-column { grid-template-columns: 1fr; }
  .box { max-width: 100%; }
  .cta-btn { max-width: 200px; margin: 20px auto; }
  
}


/* Desktop / tablet: always show the full nav on the header line */
@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }


  .nav-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: auto !important;
  }


  .nav-menu {
    display: flex !important;
    flex-direction: row !important;
    width: auto !important;
    margin-top: 0 !important;
  }
}