html,
body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: auto;
}

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  background-color: #0d1b2a;
  color: #111;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.container {
  width: 90%;
  max-width: 320px;
  margin: 0 auto;
}

header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  padding: 1rem 1rem;
  position: relative;
  z-index: 100;
  background-color: transparent;
}

.logo-container {
  color: white;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.logo-link {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 0.5rem;
}

.logo-link svg {
  display: inline-block;
  vertical-align: middle;
  width: 24px;
  height: 24px;
}

.logo-text {
  font-family: "Vollkorn", serif;
  font-size: 1.5rem;
  font-weight: 300;
  margin-left: 0.5rem;
}

nav {
  position: fixed;
  inset: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 3.5rem;
  background: #000;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.35s ease;
  -o-transition: opacity 0.35s ease;
  transition: opacity 0.35s ease;
  z-index: 1000;
}

nav.show {
  opacity: 1;
  pointer-events: auto;
}

nav a {
  color: inherit;
  font-size: 2.5rem;
  font-family: "EB Garamond", serif;
}

/* Hamburger base */
#hamburger {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
  margin-top: 0.375rem;
}

#hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

#hamburger.active span {
  background-color: #fff;
}

#hamburger.active span:nth-child(1) {
  -webkit-transform: translateY(8px) rotate(45deg);
  -ms-transform: translateY(8px) rotate(45deg);
  transform: translateY(8px) rotate(45deg);
}

#hamburger.active span:nth-child(2) {
  opacity: 0;
}

#hamburger.active span:nth-child(3) {
  -webkit-transform: translateY(-8px) rotate(-45deg);
  -ms-transform: translateY(-8px) rotate(-45deg);
  transform: translateY(-8px) rotate(-45deg);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 1rem;
  background: #000;
  padding: 0 1rem; /* horizontal padding only, vertical comes in animation */
  border-radius: 8px;
  -webkit-transition: max-height 0.35s ease, opacity 0.3s ease,
    padding 0.3s ease;
  -o-transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
}

/* Expanded state */
.dropdown.open .dropdown-menu {
  max-height: 500px; /* big enough to fit all submenu links */
  opacity: 1;
  padding: 1rem; /* restores full padding smoothly */
}

.dropdown-menu li a {
  font-size: 1.2rem; /* smaller than the main menu */
  font-family: "Montserrat", sans-serif; /* match body font */
  text-align: center; /* center align on mobile */
  color: white;
  display: block;
  padding: 0.25rem 0;
}

.dropdown-toggle {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 0.5rem;
  margin-left: 3rem;
}

/* Bigger arrow */
.dropdown-icon {
  width: 1.25rem; /* was 1rem */
  height: 1.25rem;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  -o-transition: transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

/* Rotate arrow up when open */
.dropdown.open .dropdown-icon {
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}

body.no-scroll {
  overflow: hidden;
  height: 100svh;
}

/* Main Residential Cleaning Page Styles */
main {
  padding: 7rem 1.5rem 1rem;
  font-family: "EB Garamond", serif;
  color: #fafbfc;
  line-height: 1.6;
  background: -o-linear-gradient(315deg, #1a1c1f 0%, #2c2f33 100%);
  background: linear-gradient(135deg, #1a1c1f 0%, #2c2f33 100%);
  -webkit-box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  margin: 2rem 1rem;
}
.main-image {
  display: none;
}

.living-space,
.why-us,
.houston-downtown,
.houses-apts-condos {
  display: none;
}

/* Subtitle above H1 */
.page-subtitle {
  display: block;
  text-align: right;
  font-size: 2rem;
  font-weight: 800;
  color: #fafbfc;
  margin: 0 0 6rem 0.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 4px solid #345c83;
  padding-bottom: 0.75rem;
}

/* Hero Title */
.residential-hero h1 {
  text-align: right;
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #fafbfc;
  border-right: 4px solid #345c83;
  padding-right: 0.75rem;
}

/* Hero Paragraph */
.residential-hero p {
  text-align: right;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #dcdfe3;
  max-width: 600px;
  margin-left: auto;
}

/* Section Styling  */
hr.hr-spacings {
  border: none;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  margin: 2rem 0;
}

/* Section Headings */
section h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #fafbfc;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-right: 4px solid #345c83;
  padding-right: 0.75rem;
}

/* Section Paragraphs */
section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #e6e7eb;
  text-align: right;
}

/* Call-to-Action Button */
.contact-cta {
  text-align: center;
  margin-top: 1.5rem;
}

.contact-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #345c83;
  color: #fafbfc;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  -webkit-transition: background 0.3s ease, -webkit-transform 0.2s ease,
    -webkit-box-shadow 0.2s ease;
  transition: background 0.3s ease, -webkit-transform 0.2s ease,
    -webkit-box-shadow 0.2s ease;
  -o-transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease,
    -webkit-transform 0.2s ease, -webkit-box-shadow 0.2s ease;
}

.contact-btn:hover {
  background: #1f374e;
  -webkit-transform: translateY(-3px);
  -ms-transform: translateY(-3px);
  transform: translateY(-3px);
  -webkit-box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

main h1,
main h2,
main p {
  opacity: 0;
  -webkit-transform: translateY(20px);
  -ms-transform: translateY(20px);
  transform: translateY(20px);
  -webkit-transition: all 0.6s ease-out;
  -o-transition: all 0.6s ease-out;
  transition: all 0.6s ease-out;
}

.show {
  opacity: 1;
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
}

/* FOOTER */
.site-footer {
  width: 100%;
  background-color: #345c83;
  color: #fff;
  padding: 1.5rem;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  text-align: center;
}

.footer-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 1.5rem;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.footer-brand h2 {
  font-size: 1.4rem;
  margin: 0 0 0.25rem 0;
}

.footer-brand p {
  font-size: 0.95rem;
  margin: 0;
}

.footer-links h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 0.4rem;
}

.footer-links ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.footer-links ul li a:hover {
  color: #d1e4f2;
  background-color: rgba(255, 255, 255, 0.1);
}

.footer-social h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer-social .social-icons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 0.75rem;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.footer-social svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  -webkit-transition: stroke 0.3s;
  -o-transition: stroke 0.3s;
  transition: stroke 0.3s;
}

.footer-social a:hover svg {
  stroke: #d1e4f2;
}

.footer-bottom {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 0.75rem;
  font-size: 0.85rem;
}

@media (min-width: 375px) {
  .page-subtitle {
    font-size: 2.2rem;
  }

  .residential-hero h1 {
    font-size: 1.9rem;
  }

  .residential-hero p {
    font-size: 1.3rem;
  }

  section h2 {
    font-size: 1.9rem;
  }

  section p {
    font-size: 1.3rem;
  }

  .contact-btn {
    font-size: 1.1rem;
    padding: 0.85rem 1.75rem;
  }
}

@media (min-width: 414px) {
  body {
    font-size: 1.05rem;
  }

  h1 {
    font-size: 4.7rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  p {
    font-size: 1.05rem;
    line-height: 1.6;
  }
  .page-subtitle {
    font-size: 2.4rem;
  }

  .residential-hero h1 {
    font-size: 2.1rem;
  }

  .residential-hero p {
    font-size: 1.4rem;
  }

  section h2 {
    font-size: 2.1rem;
  }

  section p {
    font-size: 1.4rem;
  }

  .contact-btn {
    font-size: 1.15rem;
    padding: 0.9rem 1.8rem;
  }
}

@media (min-width: 640px) {
  body {
    font-size: 1.125rem;
    max-width: 100%;
    margin: 0 auto;
  }
  .container {
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
  }
  .site-footer {
    width: 100vw;
    margin: 0;
    padding: 1.5rem 1rem;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  .footer-container {
    max-width: 100%;
    width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 1.5rem;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }

  .footer-links ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 1.5rem;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 0;
    margin: 0;
  }

  .footer-links ul li {
    margin: 0;
  }

  .footer-links ul li a {
    font-size: 0.95rem;
    color: #fff;
    text-decoration: none;
    -webkit-transition: color 0.3s;
    -o-transition: color 0.3s;
    transition: color 0.3s;
  }

  .footer-links ul li a:hover {
    color: #d1e4f2;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 90%;
    width: 90%;
  }
}

@media (min-width: 1024px) {
  header {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }

  .logo-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-top: 0.7rem;
  }

  #hamburger {
    display: none;
  }

  nav {
    position: absolute;
    top: 0.5rem;
    left: 54%; /* moved from 50% to 54% */
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    gap: 2rem;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
  }

  nav a {
    font-size: 1.8rem;
    line-height: 1;
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 0.3125rem 0;
    position: relative;
  }

  nav a::before,
  nav a::after {
    content: "";
    position: absolute;
    display: block;
    border: 0 solid transparent;
    width: 0%;
    height: 0%;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }

  nav a::after {
    top: 0;
    left: -0.5rem;
    border-top: 0.125rem solid transparent;
    border-left: 0.125rem solid transparent;
  }

  nav a::before {
    right: -0.5rem;
    bottom: 0;
    border-bottom: 0.125rem solid transparent;
    border-right: 0.125rem solid transparent;
  }

  nav a:hover::before,
  nav a:hover::after {
    width: 0.625rem;
    height: 0.625rem;
    border-color: black;
  }

  nav a.home-link {
    margin-right: -2.8rem;
  }

  /* Dropdown for the services link */
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    -webkit-transform: translateX(-36%) translateY(-10px);
    -ms-transform: translateX(-36%) translateY(-10px);
    transform: translateX(-36%) translateY(-10px);
    min-width: 150px;
    background: rgba(20, 20, 20, 0.65); /* subtle transparency */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px); /* frosted floating effect */
    border-radius: 0;
    -webkit-box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35); /* floating shadow */
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity 0.25s ease, visibility 0.25s ease,
      -webkit-transform 0.25s ease;
    transition: opacity 0.25s ease, visibility 0.25s ease,
      -webkit-transform 0.25s ease;
    -o-transition: opacity 0.25s ease, transform 0.25s ease,
      visibility 0.25s ease;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease,
      -webkit-transform 0.25s ease;
    max-height: none;
    overflow: visible;
  }

  .dropdown:hover > .dropdown-menu,
  .dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateX(-36%) translateY(0);
    -ms-transform: translateX(-36%) translateY(0);
    transform: translateX(-36%) translateY(0);
  }

  .dropdown-menu li a {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    text-align: center;
    display: block;
    color: #f5f5f5;
    position: relative;
    letter-spacing: 0.3px;
    -webkit-transition: color 0.25s ease;
    -o-transition: color 0.25s ease;
    transition: color 0.25s ease;
  }

  .dropdown-menu li a::before,
  .dropdown-menu li a::after {
    content: "";
    position: absolute;
    display: block;
    border: 0 solid transparent;
    width: 0%;
    height: 0%;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }

  .dropdown-menu li a::after {
    top: 0;
    left: 0.5rem;
    border-top: 0.125rem solid transparent;
    border-left: 0.125rem solid transparent;
  }

  .dropdown-menu li a::before {
    right: 0.5rem;
    bottom: 0;
    border-bottom: 0.125rem solid transparent;
    border-right: 0.125rem solid transparent;
  }

  .dropdown-menu li a:hover::before,
  .dropdown-menu li a:hover::after {
    width: 0.625rem;
    height: 0.625rem;
    border-color: black; /* same accent as nav hover */
  }

  /* rotate arrow */
  .dropdown:hover .dropdown-icon,
  .dropdown:focus-within .dropdown-icon,
  .dropdown.open .dropdown-icon {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
  }

  body.no-scroll {
    overflow: auto;
    height: auto;
  }

  .residential-hero p {
    max-width: 600px;
    margin-left: auto;
  }

  section p {
    max-width: 600px;
    margin-left: auto;
  }
}

@media (min-width: 1280px) {
  .logo-text {
    font-family: "EB Garamond", serif;
  }
  nav {
    position: absolute;
    top: 0.75rem;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    gap: 2rem;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
  }
  main {
    position: relative;
    padding-left: 420px;
  }

  .main-image {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 100%;
    object-fit: cover;
  }

  main > section,
  .contact-cta {
    position: relative;
    z-index: 1;
  }

  section h2 {
    font-size: 2.3rem;
    max-width: 900px;
    margin-left: auto;
  }

  .section-with-bubble {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    margin: 4rem 0;
    flex-direction: row-reverse;
  }

  .section-with-bubble .bubble {
    display: block;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
  }

  .residential-hero .bubble,
  .why-choose .bubble,
  .areas-we-serve .bubble,
  .what-we-mean .bubble {
    margin-left: -200px;
  }

  .bubble {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
  }

  .bubble.show {
    opacity: 1;
    transform: translateY(0);
  }

  .page-subtitle {
    text-align: center;
  }

  .residential-hero h1 {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
  }
  .residential-hero p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
  }
  section h2 {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
  }
  section p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
  }
}

@media (min-width: 1440px) {
  main {
    padding-left: 400px;
  }

  .section-with-bubble {
    gap: 8rem;
  }

  .residential-hero .bubble,
  .why-choose .bubble,
  .areas-we-serve .bubble,
  .what-we-mean .bubble {
    margin-left: -200px;
  }

  .page-subtitle {
    font-size: 3rem;
  }

  .residential-hero h1 {
    font-size: 2.6rem;
  }

  .residential-hero p {
    font-size: 1.7rem;
  }

  section h2 {
    font-size: 2.6rem;
  }

  section p {
    font-size: 1.7rem;
  }

  .contact-btn {
    font-size: 1.6rem;
    padding: 0.9rem 1.8rem;
    padding: 0.5rem 6rem;
    margin-left: 40rem;
  }
}

@media (min-width: 1920px) {
  nav a {
    font-size: 2rem;
  }

  .logo-link svg {
    width: 30px;
    height: 30px;
  }
  .logo-text {
    font-size: 1.9rem;
  }
}
