:root {
  --green: #2ecc71;
  --green-dark: #27ae60;
  --green-gradient: linear-gradient(135deg, #2ecc71, #27ae60);
  --text-dark: #000;
  --text-light: #fff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-blur: blur(12px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", Tahoma, Verdana, sans-serif;
  text-align: center;
  color: var(--text-dark);
  background-image: url("../images/justin-bautista-X7wkEZ5R384-unsplash_darkgreen.jpg");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* --- Legal Page --- */

.legal {
  max-width: 960px;
  text-align: left;
  color: var(--text-light);
}

.legal__header {
  display: grid;
  gap: 12px;
  padding: 20px 0 10px;
}

.legal__title {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
}

.legal__section {
  margin: 24px 0;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  padding: 24px;
  border-radius: 12px;
}

.legal__section h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.legal__section p {
  margin: 0 0 14px;
  line-height: 1.5;
}

.legal__section a {
  color: var(--text-light);
  text-decoration: underline;
}

.btn--text {
  background: transparent;
  color: var(--text-light);
  padding: 0;
}

/* --- Hero --- */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 24px;
  padding-bottom: 10px;
}

.hero__glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 14px 28px;
}

.hero__logo {
  width: 120px;
  height: 120px;
  opacity: 0;
  transform: translateX(-80px) rotate(-360deg);
  animation: roll-in-left 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__logo--right {
  transform: translateX(80px) rotate(360deg);
  animation: roll-in-right 1s cubic-bezier(0.22, 1, 0.36, 1) 120ms forwards;
}

.hero__title {
  margin: 0;
  max-width: 420px;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--text-dark);
  opacity: 0;
  animation: fade-in 800ms ease-out 700ms forwards;
}

.hero__brand {
  display: block;
  font-family: Tahoma, Verdana, Segoe, sans-serif;
  color: var(--text-dark);
}

.hero__subtitle {
  display: block;
  font-family: Tahoma, Verdana, Segoe, sans-serif;
  font-size: 28px;
  color: var(--text-dark);
}

/* --- Section Dividers --- */

.section-divider {
  width: 60%;
  max-width: 500px;
  height: 1px;
  margin: 0 auto;
  border: none;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

/* --- Services --- */

.services {
  padding: 20px 0 40px;
}

.services__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 16px;
  margin: 20px auto 0;
  padding: 0;
  justify-items: center;
}

.service-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 18px 12px;
  border-radius: 12px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
  width: 100%;
  opacity: 0;
  transform: translateY(24px);
}

.service-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 500ms ease, transform 500ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(46, 204, 113, 0.15);
  border-color: rgba(46, 204, 113, 0.3);
}

.service-card__icon {
  max-height: 35px;
  transition: filter 300ms ease;
}

.service-card:hover .service-card__icon {
  filter: drop-shadow(0 0 8px rgba(46, 204, 113, 0.6));
}

.service-card__label {
  color: var(--text-light);
  font-family: Tahoma, Verdana, Segoe, sans-serif;
  font-size: 18px;
  font-weight: 400;
}

/* --- Contact --- */

.contact {
  display: grid;
  gap: 20px;
  justify-items: center;
  padding: 20px 0 30px;
}

.contact__card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 28px 36px;
  display: grid;
  gap: 8px;
}

.contact__title {
  margin: 8px 0;
  font-size: 27px;
  font-weight: 700;
  color: var(--text-light);
}

.contact__detail {
  display: block;
  margin-top: 10px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 400;
}

/* --- Buttons --- */

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark);
  padding: 14px 32px;
  border-radius: 50px;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.btn--primary {
  background: var(--green-gradient);
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn--primary:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 25px rgba(46, 204, 113, 0.45);
}

.btn--footer {
  font-size: 20px;
  background-color: transparent;
  padding: 6px 18px;
  border-radius: 4px;
}

/* --- Media / Galleries --- */

.media {
  margin-top: 40px;
  padding-bottom: 40px;
}

.section-title {
  margin: 0 0 16px;
  color: var(--text-light);
  font-size: 32px;
  font-weight: 700;
}

.slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 16px;
}

.slider__track {
  display: flex;
  will-change: transform;
}

.slider--images .slider__track .slide {
  opacity: 0;
  transition: opacity 600ms ease;
  position: absolute;
  inset: 0;
}

.slider--images .slider__track .slide.is-active {
  opacity: 1;
  position: relative;
}

.slider--video .slider__track {
  transition: transform 0.5s ease;
}

.slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide--image {
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: contain;
  height: 900px;
}

.slider--video .slide {
  padding: 10px 0;
}

.ratio {
  width: min(600px, 90vw);
  position: relative;
  aspect-ratio: var(--ratio, 16 / 9);
  box-shadow: var(--shadow);
  border-radius: 12px;
  overflow: hidden;
}

.ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  z-index: 2;
  transition: background 200ms ease, border-color 200ms ease;
}

.slider__arrow:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.slider__arrow-icon {
  position: relative;
  top: -2px;
}

.slider__arrow--prev {
  left: 10px;
}

.slider__arrow--next {
  right: 10px;
}

.slider__nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.slider__counter {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
  opacity: 0.7;
  margin-top: 8px;
}

.slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

.slider__dot.is-active {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.25);
}

.spacer {
  height: 50px;
}

/* --- Footer --- */

.footer {
  background-color: var(--green-dark);
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Keyframes --- */

@keyframes roll-in-left {
  0% {
    opacity: 0;
    transform: translateX(-80px) rotate(-360deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
}

@keyframes roll-in-right {
  0% {
    opacity: 0;
    transform: translateX(80px) rotate(360deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */

@media screen and (max-width: 991px) {
  body {
    background-attachment: fixed;
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .page {
    padding: 0 12px 24px;
  }

  .services__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .slide--image {
    height: 700px;
  }

  .contact__card {
    padding: 24px 28px;
  }
}

@media screen and (max-width: 767px) {
  body {
    background-image: url("../images/justin-bautista-X7wkEZ5R384-unsplash_darkgreen.jpg");
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .hero__logo {
    width: 100px;
    height: 100px;
  }

  .hero__title {
    font-size: 30px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__glass {
    padding: 10px 18px;
  }

  .services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: center;
  }

  .service-card:last-child {
    grid-column: 2;
  }

  .slide--image {
    height: 520px;
  }

  .slider--video .ratio {
    width: min(600px, 95vw);
  }

  .contact__card {
    padding: 20px 18px;
  }

  .contact__detail {
    font-size: 18px;
  }
}

@media screen and (max-width: 479px) {
  .hero {
    gap: 6px;
  }

  .hero__logo {
    width: 60px;
    height: 60px;
  }

  .hero__title {
    font-size: 22px;
    line-height: 1.2;
  }

  .hero__subtitle {
    font-size: 10px;
    line-height: 1.2;
  }

  .hero__glass {
    padding: 8px 12px;
    border-radius: 10px;
  }

  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    padding: 14px 8px;
  }

  .service-card__label {
    font-size: 11px;
  }

  .contact__title {
    font-size: 18px;
  }

  .contact__detail {
    font-size: 15px;
  }

  .section-title {
    font-size: 19px;
  }

  .slide--image {
    height: 350px;
  }

  .slider {
    border-radius: 10px;
  }

  .slider__arrow {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .btn--footer {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo,
  .hero__title,
  .service-card {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
