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

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

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

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

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

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

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

/* Header & Navigation */
header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 1rem;
  position: relative;
  z-index: 100;
  background-color: transparent;
}

.logo-container {
  display: flex;
  align-items: center;
  color: white;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: black;
}

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

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

/* Hamburger */
#hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
  margin-top: 0.375rem;
}

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

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

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

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

nav {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3.5rem;
  background: #000;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  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;
}

.services-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.services-intro h1 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #05204a;
  font-family: "EB Garamond", serif;
}

.services-grid {
  display: none;
}

.services-carousel {
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0 1.27rem;
}

.services-carousel .service-card {
  min-width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.services-carousel .service-card img {
  width: 90%;
  max-width: 280px;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
}

.services-carousel .service-card h2,
.services-carousel .service-card p {
  margin: 0.5rem 0;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 0.1rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
}

.carousel-arrow.left {
  left: 0.5rem;
}

.carousel-arrow.right {
  right: 0.5rem;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.detailed-services-bg {
  background-color: #05204a;
  color: #fff;
  padding: 2rem 1rem;
}

.detailed-services .service-detail {
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.detailed-services h2 {
  display: inline-block;
  border-bottom: 3px solid #345c83;
  padding-bottom: 0.3rem;
}

h2.residential-cleaning {
  display: inline-block;
  width: auto;
  max-width: 100%;
  text-align: center;
  white-space: nowrap;
}

.cta-footer {
  background-image: url("../pics/home-3678954_1920.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  padding: 3rem 1rem;
  color: white;
  position: relative;
}

.cta-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.cta-button {
  display: inline-block;
  background-color: #05204a;
  color: white;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  font-family: "EB Garamond", serif;
}

.cta-button:hover {
  background-color: #03416a;
  color: white;
}

.cta-footer>* {
  position: relative;
  z-index: 2;
}

.cta-image {
  display: none;
}

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

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  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;
  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: flex;
  gap: 0.75rem;
  justify-content: center;
}

.footer-social svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  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: 321px) {
  .services-carousel {
    max-width: 320px;
    margin: 2rem auto;
  }

  .carousel-track {
    gap: 0 !important;
    padding: 0 !important;
  }

  .services-carousel .service-card {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .services-carousel .service-card img {
    width: 100% !important;
    max-width: 100% !important;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
  }

  .carousel-arrow.left {
    left: 0.25rem;
  }

  .carousel-arrow.right {
    right: 0.25rem;
  }
}

@media (min-width: 414px) {
  /* No overrides needed yet */
}

@media (min-width: 640px) {
  .services-intro h1 {
    font-size: 4.25rem;
  }

  .services-carousel {
    display: none;
  }

  .services-grid {
    display: flex;
    gap: 1rem;
    width: 100%;
    overflow: hidden;
    margin-top: 4rem;
    position: relative;
    background-image: url("pics/paper-3155438_1920.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 2rem;
  }

  .services-grid::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 0;
  }

  .services-grid>* {
    position: relative;
    z-index: 1;
  }

  .service-card {
    flex: 1 1 0;
    flex-grow: 2;
    min-width: 0;
    background-color: #1b324d;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: flex-grow 0.5s ease, height 0.5s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 650px;
    position: relative;
  }

  .service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 12px;
  }

  .service-card h2 {
    position: absolute;
    bottom: 3.5rem;
    left: 1rem;
    right: 1rem;
    color: white;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    z-index: 2;
  }

  .service-card p {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    color: white;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
    margin: 0;
    font-size: 1.1rem;
    z-index: 1;
  }

  .short-text {
    display: block;
  }

  .full-text {
    display: none;
  }

  .service-card.active .short-text {
    display: none;
  }

  .service-card.active .full-text {
    display: block;
  }

  .service-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    bottom: 9rem;
  }

  .service-card.active {
    flex-grow: 6;
    height: 650px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  }

  .expand-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
    transition: background-color 0.3s ease;
  }

  .expand-indicator a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    cursor: pointer;
    border-radius: 50%;
  }

  .expand-indicator a:hover {
    background-color: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
  }

  .detailed-services .service-detail h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.25rem;
    margin-bottom: 1rem;
  }

  .detailed-services .service-detail h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: #345c83;
    border-radius: 2px;
  }

  .footer-links ul {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
  }

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

@media (min-width: 768px) {
  .detailed-services p {
    max-width: 65%;
    margin: 0 auto;
    text-align: center;
  }

  .cta-footer .cta-text {
    text-align: left;
    font-size: 3.5rem;
    margin-left: 1rem;
  }

  .cta-footer .cta-button {
    margin-left: 26rem;
    top: -7rem;
    padding: .7rem 4rem;
  }
}

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

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

  #hamburger {
    display: none;
  }

  nav {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-40%);
    display: flex;
    flex-direction: row;
    gap: 2rem;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
  }

  nav a {
    font-size: 1.5rem;
    line-height: 1;
    text-decoration: none;
    color: black;
    font-weight: 500;
    padding: 0.3125rem 0.9375rem;
    position: relative;
  }

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

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

  nav a::before {
    right: 0;
    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;
  }

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

  .cta-footer .cta-text {
    text-align: left;
    font-size: 4.5rem;
    margin-left: 1rem;
  }

  .cta-footer .cta-button {
    margin-left: 26rem;
    top: -9rem;
    padding: .6rem 5rem;
  }

}

@media (min-width: 1280px) {
  .logo-text {
    font-family: "EB Garamond", serif;
  }

  nav {
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 2rem;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
  }

  .services-grid .service-card h2 {
    bottom: 5rem;
    font-size: 1.75rem;
    color: white;
  }

  .services-grid .service-card .short-text {
    margin-top: 0.5rem;
  }

  .detailed-services-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, .05) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 4px 4px;
  animation: grain 12s linear infinite;
  pointer-events: none;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-4px, -4px); }
}

.detailed-services {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem 4rem;
  align-items: start;
}

.service-detail {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  text-align: left;

  opacity: 0;
  transform: translateY(30px);
}

.service-detail.animate {
  animation: reveal 0.8s ease forwards;
}

.service-detail:nth-child(1).animate { animation-delay: .1s; }
.service-detail:nth-child(2).animate { animation-delay: .25s; }
.service-detail:nth-child(3).animate { animation-delay: .4s; }
.service-detail:nth-child(4).animate { animation-delay: .55s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-detail h2 {
  font-size: clamp(2.25rem, 2.5vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 1rem;
  position: relative;
}

.service-detail h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #ffffff, #05204a);
  border-radius: 2px;
}

.service-detail p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, .85);
  max-width: 480px;
  margin: 0;
}

.service-detail:hover h2::after {
  width: 100px;
  transition: width .3s ease;
}

.cta-footer .cta-button {
    margin-left: 26rem;
    top: -7rem;
    padding: .7rem 8rem;
  }

}

@media (min-width: 1440px) {
  .cta-footer .cta-button {
    margin-left: 26rem;
    top: -7rem;
    padding: .7rem 10rem;
  }
}

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

  .logo-link svg{
    width: 30px;
    height: 30px;
  }
  .logo-text {
    font-size: 1.9rem;
    white-space: nowrap;
  }
  .cta-footer .cta-text {
    text-align: left;
    font-size: 6rem;
    margin-left: 1rem;
  }
  .cta-footer .cta-button {
    margin-left: 26rem;
    top: -7rem;
    padding: .7rem 12rem;
  }
}