* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Raleway', sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}

a {
  color: #e21c21;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.contact-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px; /* reduce or increase to control spacing */
  flex-wrap: wrap;
}

.contact-info {
  max-width: 300px;
}

.qr-code {
  text-align: center;
}

.qr-code img {
  width: 150px;
  height: auto;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: #f9f9f9;
  border-bottom: 1px solid #ccc;
}

.header-container {
  display: flex;
  background: #f0f0f0;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 50px 1rem 0;
}

.logo {
  height: 46px;
  margin-left: 10px;
}
#menu-toggle {
  display: none;
  font-size: 2.2rem; 
  background: none;
  margin-left: auto; 
  margin-right: -22px;
  border: none;
  cursor: pointer;
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  position: static;
  background: none;
  box-shadow: none;
  z-index: 100;
  margin-right: 0;
}


nav ul li a {
  font-weight: bold;
}


.hero {
  background: url('../img/background1.png') no-repeat center center/cover;
  color: #422c2c;
  padding: 15rem 1rem;
  text-align: center;
}

.hero-logo {
  /*width: 150px;
  margin-left: -21px;*/
  width: 326px;
  margin-left: -29px;
  margin-bottom: 9px;
}

.hero h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  margin-right: 19px;
}

.hero p {
  font-size: 1.25rem;
  margin-right: 19px;
  font-weight: bold;
}

.hero-text {
  position: relative;
  /*top: 38px; */
  top: 43px;
}
@media (max-width: 768px) {
  .hero-text {
    top: 44px;
  }
}

.section {
  min-height: calc(100vh - 80px); 
  padding: 4rem 1rem;
  scroll-snap-align: start;
}
#home,
#about,
#services,
#contact {
  scroll-margin-top: 80px; 
}
.section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
#red {
  color: #e21c21;
}
.section p:not(section#contact p) {
  font-size: 1rem;
  max-width: 800px;
  margin: 30px auto 1.5rem;
}
.about p,
.disclaimer p {
  text-align: justify;
  text-indent: 1.5em;
}
.section h1,
.section h2,
.section h3,
.section-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.dark {
  background: #111;
  color: #fff;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: #fff;
  color: #000;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dark .service-card {
  background: #f4f4f4;
}

/* Contact */
.social-links {
  margin-top: 1rem;
}
.social-links a {
  margin: 0 0.5rem;
  font-weight: bold;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  background: #f0f0f0;
  font-size: 0.9rem;
}

.footer-logo {
  width: 70px;
  margin-bottom: 1rem;
}

/* Animation */
.fade-in {
  animation: fadeIn 2s ease-out forwards;
  opacity: 0;
  margin-bottom: 7em;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: #f9f9f9;
    position: absolute;
    right: 0;
    top: 60px;
    width: 200px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }

  nav ul.active {
    display: flex;
  }

  #menu-toggle {
    display: block;
  }
}
.practice-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.practice-box {
  width: 280px;
  height: 160px;
  background: #f4f4f4;
  padding: 1.5rem;
  border-radius: 8px;
  color: #000;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}



.practice-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #e21c21;
}

.practice-card ul {
  list-style: none;
  padding-left: 0;
}

.practice-card li {
  margin-bottom: 1.5rem;  /* keeps spacing between list items */
}

.practice-card li strong {
  display: inline;
  font-weight: bold;
  margin: 0;
}

.real-estate-bubble {
  background: #fff;
  color: #000;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  font-weight: bold;
  margin: 2rem auto 0 auto;
  width: calc(280px * 4 + 2rem * 3); /* 4 boxes + 3 gaps */
  max-width: 100%;
}


.real-estate-bubble a {
  color: #000;
  text-decoration: none;
}

.real-estate-bubble a:hover {
  text-decoration: underline;
}

.modal {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
  backdrop-filter: blur(3px);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 8px;
  width: 80%;
  max-width: 700px;
  color: #000;
  position: relative;
}

.modal-content h2 {
  margin-top: 0;
  color: #e21c21;
  text-align: center;
}

.modal-content ul {
  padding-left: 1.2rem;
  margin-top: 1rem;
  line-height: 1.6;
}

.close {
  color: #aaa;
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

.practice-subhead {
  color: #e21c21;
  font-size: 1.5rem;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

#contact .disclaimer {
  max-width: 960px;
  margin: 3rem auto 0;
  padding: 2rem;
  border-radius: 8px;
  font-size: 0.5rem;
  line-height: 1.6;
  color: #222;
  text-align: justify;
}

#contact .disclaimer h2,
#contact .disclaimer h3 {
  text-align: center;
  color: #b30000;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 12px !important;
}
#contact .disclaimer p {
  text-indent: 2em;
  margin-bottom: 1.2rem;
}


.disclaimer-subheading {
  color: #e21c21;
  font-size: 12px !important;
  margin-top: 2rem;
  margin-left: 200px;
  text-align: left;

}
.disclaimer ul {
  margin-left: 200px;
  padding-left: 1rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .disclaimer-subheading {
   margin-left: 26%;
  }
  .disclaimer ul
  {
	margin-left: 0px;
	}
}

@media (max-width: 992px) {
  .practice-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on tablets */
  }
}

@media (max-width: 576px) {
  .practice-grid {
    grid-template-columns: 1fr; /* full width on phones */
  }
}

.disclaimer ul li {
  margin-bottom: 0.5rem;
}
