:root {
  --header-height: 4.5rem;
  /* colors */
  --hue: 0;
  --base-color: #000000;
  --base-color-second: #7c7c7c;
  --base-color-alt: #9b9a9a;
  --title-color: #4f4f4f;
  --text-color: #000000;
  --text-color-light: #ffffff;
  --body-color: #ffffff;
  /*fonts*/
  --title-font-size: 1.875rem;
}

/* ==================== BASE STYLES ==================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font: 400 1rem 'DM Sans', sans-serif;
  color: var(--text-color);
  background: var(--body-color);
  -webkit-font-smoothing: antialiased;
}

ul { list-style: none; }
a { text-decoration: none; }
img { width: 100%; height: auto; }

/* ==================== UTILITY CLASSES ==================== */
.title {
  font: 700 var(--title-font-size) 'Poppins', sans-serif;
  color: var(--title-color);
  -webkit-font-smoothing: auto;
}

.button {
  background-color: var(--base-color);
  color: var(--text-color-light);
  height: 3.5rem;
  display: inline-flex;
  align-items: center;
  padding: 0 2rem;
  border-radius: 0.25rem;
  font: 500 1rem 'DM Sans', sans-serif;
  transition: background 0.3s;
}
.button:hover { background: var(--base-color-alt); }

.divider-1, .divider-2 {
  height: 1px;
  background: linear-gradient(
    270deg,
    hsl(var(--hue), 0%, 0%, 1) 0%,
    hsla(var(--hue), 65%, 88%, 0.34) 100%
  );
}
.divider-2 {
  background: linear-gradient(
    270deg,
    hsla(var(--hue), 65%, 88%, 0.34),
    hsla(var(--hue), 0%, 0%, 1)
  );
}

/* ==================== LAYOUT STRUCTURES ==================== */
.container {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

.section {
  padding: 5rem 0;
}
.section .title { margin-bottom: 1rem; }
.section header { margin-bottom: 4rem; }
.section header strong { color: var(--base-color); }

/* ==================== HEADER STYLES ==================== */
#header {
  border-bottom: 1px solid #e4e4e4;
  margin-bottom: 2rem;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: var(--base-color);
  width: 100%;
}
#header.scroll { box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.15); }
#header .container .menu .grid .title { color: #ffffff; }

main { margin-top: calc(var(--header-height) + 2rem); }

.logo {
  font: 700 1.5rem 'Poppins', sans-serif;
  color: var(--title-color);
}
.logo span { color: var(--text-color-light); }

/* ==================== NAVIGATION ==================== */
nav {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
nav ul li { text-align: center; }
nav ul li a {
  transition: color 0.25s;
  position: relative;
}
nav ul li a:hover { color: var(--base-color-alt); }
nav ul li a::after {
  content: '';
  width: 0%;
  height: 2px;
  background: var(--base-color-alt);
  position: absolute;
  left: 0;
  bottom: -1.5rem;
  transition: width 0.2s;
}
nav ul li a:hover::after { width: 100%; }

nav .menu {
  opacity: 0;
  visibility: hidden;
  top: -20rem;
  transition: 0.2s;
}
nav .menu ul { display: none; }

/* Menu States */
nav.show .menu {
  opacity: 1;
  visibility: visible;
  background: var(--base-color);
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  display: grid;
  place-content: center;
}
nav.show .menu ul { display: grid; }
nav.show ul.grid { gap: 4rem; }

/* Toggle Menu */
.toggle {
  color: var(--base-color);
  font-size: 1.5rem;
  cursor: pointer;
}
nav .icon-close {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: -1.5rem;
  right: 1.5rem;
  transition: 0.2s;
}
nav.show div.icon-close {
  visibility: visible;
  opacity: 1;
  top: 1.5rem;
}

/* ==================== SECTION STYLES ==================== */
#home { overflow: hidden; }
#home .container { margin: 0; }
#home .image {
  position: relative;
}
#home .image::before {
  content: '';
  height: 100%;
  width: 100%;
  background: var(--base-color-second);
  position: absolute;
  top: -16.8%;
  left: 16.7%;
  z-index: 0;
  border-radius: 0.25rem;
}
#home .image img {
  position: relative;
  right: 3rem;
  border-radius: 0.25rem;
}
#home .text {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  text-align: center;
}
#home .text h1 { margin-bottom: 1rem; }
#home .text p { margin-bottom: 2rem; }

#about { background: white; }
#about .container { margin: 0; }
#about .image {
  position: relative;
}
#about .image::before {
  content: '';
  height: 100%;
  width: 100%;
  background: var(--base-color-second);
  position: absolute;
  top: -8.3%;
  left: -33%;
  z-index: 0;
  border-radius: 0.25rem;
}
#about .image img {
  position: relative;
  border-radius: 0.25rem;
}
#about .text {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

/* ==================== SERVICES ==================== */
.cards.grid { gap: 1.5rem; }
.card {
  padding: 3.625rem 2rem;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.08);
  border-bottom: 0.25rem solid var(--base-color);
  border-radius: 0.25rem 0.25rem 0 0;
  text-align: center;
}
.card i {
  display: block;
  margin-bottom: 1.5rem;
  font-size: 5rem;
  color: var(--base-color);
}
.card .title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/* ==================== TESTIMONIALS ==================== */
#testimonials { background: white; }
#testimonials header {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  margin-bottom: 0;
}
#testimonials blockquote {
  padding: 2rem;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.1);
  border-radius: 0.25rem;
}
#testimonials blockquote p {
  position: relative;
  text-indent: 1.875rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}
#testimonials blockquote p span {
  font: 700 3rem serif;
  position: absolute;
  top: -1rem;
  left: -1.875rem;
  color: var(--base-color);
}
#testimonials cite {
  display: flex;
  align-items: center;
  font-style: normal;
  color: var(--title-color);
}
#testimonials cite img {
  width: 2rem;
  height: 2rem;
  object-fit: cover;
  clip-path: circle();
  margin-right: 0.5rem;
}

/* ==================== CONTACT SECTION ==================== */
#contact {
  background: var(--body-color);
  padding: 5rem 0;
}

#contact .container {
  display: grid;
  gap: 3rem;
}

#contact .text {
  text-align: center;
}

#contact .title {
  color: var(--title-color);
  margin-bottom: 1.5rem;
}

#contact p {
  color: var(--text-color);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-buttons-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 2rem;
}

.contact-button {
  width: 100%;
  padding: 1rem 2rem;
  border-radius: 0.25rem;
  font: 500 1rem 'DM Sans', sans-serif;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.standard-button {
  background-color: #34af23;
  color: white;
}

.standard-button:hover {
  background-color: #2d9a1f;
  transform: translateY(-2px);
}

.instagram-button {
  background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
  color: white;
}

.instagram-button:hover {
  background: linear-gradient(45deg, #E1306C, #C13584, #833AB4);
  transform: translateY(-2px);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-color);
}

.contact-link-item i {
  font-size: 1.25rem;
  color: #34af23;
}

/* ==================== FOOTER ==================== */
footer {
  background-color: var(--base-color);
  color: var(--base-color-second);
}
footer a { color: var(--text-color-light); }
footer .logo {
  display: inline-block;
  margin-bottom: 1.5rem;
}
footer .brand p { margin-bottom: 0.75rem; }
footer i { font-size: 2rem; }
footer .social {
  display: flex;
  gap: 2.5rem;
}
footer .social a {
  transition: 0.3s;
  display: inline-block;
}
footer .social a:hover { transform: translateY(-8px); }

/* ==================== COMPONENTS ==================== */
.back-to-top {
  background: var(--title-color);
  color: var(--body-color);
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  padding: 0.5rem;
  clip-path: circle();
  font-size: 1.5rem;
  line-height: 0;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
  transform: translateY(100%);
}
.back-to-top.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.services-highlight {
  margin: 15px 0;
  padding-left: 20px;
}
.services-highlight li {
  margin-bottom: 8px;
  position: relative;
  left: 5px;
}

.swiper-slide {
  height: auto;
  padding: 4rem 1rem;
}
.swiper-pagination-bullet {
  width: 0.75rem;
  height: 0.75rem;
}
.swiper-pagination-bullet-active { background: var(--base-color); }

.quick-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  animation: fadeIn 0.4s ease-out;
}
.quick-modal-content {
  background-color: white;
  margin: 15vh auto;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.5s ease-out;
}
.pulse { animation: pulse 2s infinite; }
.quick-close {
  position: absolute;
  right: 1.2rem;
  top: 1rem;
  font-size: 1.8rem;
  color: var(--base-color);
  cursor: pointer;
  transition: transform 0.2s;
}
.quick-close:hover {
  transform: scale(1.2);
  color: var(--base-color-alt);
}

.quick-lead-form h2 {
  color: var(--base-color);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  text-align: center;
  font-weight: 700;
}
.subtext {
  color: var(--base-color-second);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  text-align: center;
}
.quick-lead-form .form-group { margin-bottom: 1.2rem; }
.quick-lead-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.3s;
}
.quick-lead-form input:focus {
  border-color: var(--base-color);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
  outline: none;
}
.quick-lead-form input::placeholder { color: #aaa; }

.quick-button {
  background-color: var(--base-color);
  color: white;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quick-button:hover {
  background-color: var(--base-color-alt);
  transform: translateY(-2px);
}
.arrow {
  margin-left: 8px;
  transition: transform 0.3s;
}
.quick-button:hover .arrow { transform: translateX(3px); }

.privacy-text {
  font-size: 0.7rem;
  color: #999;
  text-align: center;
  margin-top: 1rem;
}

.stat-boxes {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  text-align: center;
  padding: 40px 0;
}
.stat h3 {
  font-size: 3rem;
  color: #000000;
  margin: 0;
}
.stat p {
  font-size: 1rem;
  margin-top: 10px;
  color: #444;
}

.sms-button {
  margin-left: 12px;
}
.sms-button:hover { background: #34af23; }

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  text-align: center;
}

.modal-content {
  max-width: 90%;
  max-height: 80vh;
  margin: auto;
  display: block;
}

#imgCaption {
  margin: 15px auto;
  color: white;
  font-size: 18px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #ccc;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1); }
  70% { box-shadow: 0 0 0 12px rgba(0, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

/* ==================== MEDIA QUERIES ==================== */
@media (max-width: 480px) {
  .quick-modal-content {
    margin: 10vh auto;
    padding: 1.5rem;
  }
  .quick-lead-form h2 { font-size: 1.3rem; }
  .sms-button {
    display: block;
    margin: 12px 0 0 0;
  }
}

@media (min-width: 992px) {
  :root {
    --title-font-size: 2.25rem;
    --subtitle-font-size: 1.125rem;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
  }
  .section { padding: 10rem 0; }
  .section header,
  #testimonials header {
    max-width: 32rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .button { height: 3.125rem; }

  nav .menu {
    opacity: 1;
    visibility: visible;
    background-image: url("https://www.google.com/url?sa=i&url=https%3A%2F%2Fwww.veryicon.com%2Ficons%2Fmiscellaneous%2Fgeneral-icon-library%2Fmenu-bar-1.html&psig=AOvVaw0cfmF1tLDTygYjkBnQAqmh&ust=1713714510696000&source=images&cd=vfe&opi=89978449&ved=0CBIQjRxqFwoTCNicopmS0YUDFQAAAAAdAAAAABAE");
    top: 0;
  }
  nav .menu ul {
    display: flex;
    gap: 2rem;
  }
  nav .menu ul li a.title {
    font: 400 1rem var(--body-font);
    -webkit-font-smoothing: antialiased;
  }
  nav .menu ul li a.title.active {
    font-weight: bold;
    -webkit-font-smoothing: auto;
  }
  nav .icon-menu { display: none; }

  main { margin-top: var(--header-height); }

  #home .container {
    grid-auto-flow: column;
    justify-content: space-between;
    margin: 0 auto;
  }
  #home .image { order: 1; }
  #home .text {
    order: 0;
    max-width: 24rem;
    text-align: left;
  }

  #about .container {
    margin: 0 auto;
    grid-auto-flow: column;
  }

  .cards { grid-template-columns: 1fr 1fr 1fr; }
  .card { padding-left: 3rem; padding-right: 3rem; }

  #testimonials .container {
    margin-left: auto;
    margin-right: auto;
  }

  footer.section { padding: 3.75rem 0; }
  footer .container {
    grid-auto-flow: column;
    align-items: center;
    justify-content: space-between;
  }
  footer .logo { font-size: 2.25rem; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }
  .cards.grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-buttons .button {
    padding: 12px 20px;
    font-size: 14px;
  }
}

@media (min-width: 1025px) and (max-width: 1440px) {
  .container {
    max-width: 1200px;
    margin: 0 auto;
  }
  .cards.grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1441px) {
  .container {
    max-width: 1400px;
    margin: 0 auto;
  }
  .cards.grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

#services .instagram-button {
  display: block !important;
  width: 100%;
  max-width: 300px;
  padding: 1rem;
  background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
  color: white;
  border-radius: 4px;
  text-align: center;
  transition: all 0.3s;
}

#services .instagram-button-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 3rem;
  grid-column: 1 / -1;
}

#contact .instagram-button {
  display: none;
}

#contact .sms-button {
  display: none;
}

@media (max-width: 767px) {
  #contact .sms-button {
    display: block;
  }
}

@media (min-width: 768px) {
  #contact .instagram-button {
    display: block;
  }
}

@media (min-width: 768px) {
  #contact .container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  
  #contact .text {
    text-align: left;
  }
  
  #contact p {
    margin-left: 0;
    margin-right: 0;
  }
  
  .contact-buttons-container {
    margin: 0 0 2rem 0;
  }
}

.arrow {
  margin-left: 5px;
  transition: all 0.3s ease;
}

button {
  transition: all 0.3s ease;
}