/* ===========================
   Reset & Base
   =========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  overflow-x: hidden;
  background-color: #ffffff;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===========================
   Page Wrapper
   =========================== */
.page-wrapper {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  background-image: url("images/premiumBackground.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll; /* overridden for desktop via media query */
}

.overlay {
  position: absolute;
  inset: 0;
  /* semi-transparent overlay can be customised here */
  pointer-events: none;
}

/* ===========================
   Container
   =========================== */
.container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ===========================
   Header
   =========================== */
.header {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.heading {
  font-weight: 800;
  color: #000000;
  font-size: clamp(2.25rem, 10vw, 6.25rem); /* 36px → 100px */
  line-height: 1.15;
  margin-bottom: 1rem;
}

.highlight {
  color: #ff7e00;
}

.subtext {
  color: #000000;
  font-size: clamp(0.875rem, 2.5vw, 1.5625rem); /* 14px → 25px */
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
  padding: 0 1rem;
}

/* ===========================
   Sites Grid
   =========================== */
.sites-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 72rem;  /* max-w-6xl */
  margin: 0 auto 2rem auto;
  padding: 0 1rem;
}

/* ===========================
   Site Card
   =========================== */
.site-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-card:hover {
  transform: scale(1.05);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

/* Card image area */
.card-image-wrapper {
  background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #111827 100%);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}

.site-logo {
  max-width: 100%;
  height: auto;
  max-height: 100px;
  object-fit: contain;
}

/* Card action buttons area */
.card-actions {
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  background-color: #ffffff;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-block;
  font-size: clamp(0.875rem, 2vw, 1.25rem); /* 14px → 20px */
  font-weight: 700;
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-demo {
  flex: 1;
  background-color: #ff7e00;
  color: #ffffff;
}

.btn-demo:hover {
  background-color: #e67300;
}

.btn-id {
  background-color: #000000;
  color: #ffffff;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.btn-id:hover {
  background-color: #1f2937;
}

/* ===========================
   Decorative Dots
   =========================== */
.dots {
  position: absolute;
  display: flex;
  gap: 0.25rem;
  opacity: 0.6;
  z-index: 10;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #f97316; /* orange-500 */
}

.dots-top-right {
  top: 0.5rem;
  right: 0.5rem;
}

.dots-bottom-left {
  bottom: 0.5rem;
  left: 0.5rem;
}

/* ===========================
   Responsive — Small (≥ 480px)
   =========================== */
@media (min-width: 480px) {
  .sites-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .card-image-wrapper {
    padding: 2rem 3rem;
    min-height: 180px;
  }

  .site-logo {
    max-height: 120px;
  }

  .card-actions {
    padding: 1.25rem 1.5rem;
    gap: 0.75rem;
  }

  .dots-top-right {
    top: 1rem;
    right: 1rem;
  }

  .dots-bottom-left {
    bottom: 1rem;
    left: 1rem;
  }

  .dot {
    width: 8px;
    height: 8px;
  }
}

/* ===========================
   Responsive — Medium (≥ 768px)
   =========================== */
@media (min-width: 768px) {
  .container {
    padding: 5rem 1rem;
  }

  .header {
    margin-top: 4rem;
    margin-bottom: 3rem;
  }

  .heading {
    margin-bottom: 1.5rem;
  }

  .subtext {
    margin-bottom: 2.5rem;
  }

  .sites-grid {
    gap: 2rem;
  }

  .card-image-wrapper {
    min-height: 200px;
    padding: 2.5rem 3.5rem;
  }

  .site-logo {
    max-height: 140px;
  }

  .card-actions {
    padding: 1.5rem;
    gap: 0.75rem;
  }

  .dots-top-right {
    top: 2rem;
    right: 2rem;
  }

  .dots-bottom-left {
    bottom: 2rem;
    left: 2rem;
  }
}

/* ===========================
   Responsive — Large (≥ 1024px)
   =========================== */
@media (min-width: 1024px) {
  .page-wrapper {
    background-attachment: fixed; /* parallax on desktop */
  }

  .container {
    padding: 6rem 1rem;
  }

  .sites-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-card {
    border-radius: 1rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
  }

  .btn-id {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
