/*
Theme Name: NEEDDAT HQ
Theme URI: https://needdathq.com/
Author: NEEDDAT LTD
Description: Custom NEEDDAT HQ convenience vending website.
Version: 1.0
*/

/* =========================================================
   NEEDDAT — CONVENIENCE ON DEMAND
   Main website stylesheet
========================================================= */

/* RESET */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: #000;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

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

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

/* NAVIGATION */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 78px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid rgba(165, 92, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  width: 145px;
  height: auto;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.logo:hover img {
  transform: scale(1.03);
  filter: drop-shadow(0 0 12px rgba(160, 90, 255, 0.45));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  position: relative;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 1px;
  background: #a56aff;
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: #b98aff;
}

.nav-links a:hover::after {
  width: 100%;
}

/* HERO */

.hero {
  min-height: 100vh;
  padding: 135px 8% 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: clamp(30px, 5vw, 75px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 78% 48%,
      rgba(113, 45, 190, 0.2),
      transparent 38%
    ),
    #000;
}

.hero::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  right: -180px;
  top: 20%;
  background: rgba(120, 50, 220, 0.08);
  filter: blur(100px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 800px;
  animation: heroReveal 0.9s ease both;
}

.eyebrow {
  margin-bottom: 24px;
  color: #ad75ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3em;
}

h1 {
  max-width: 900px;
  font-size: clamp(3.2rem, 6.5vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  font-weight: 800;
  overflow-wrap: break-word;
}

h1 span,
h2 span {
  color: #a66cff;
  background: linear-gradient(110deg, #d0b0ff, #8c45ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  max-width: 600px;
  margin-top: 30px;
  color: #aaa;
  font-size: 19px;
  line-height: 1.7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  padding: 16px 25px;
  border: 1px solid #9c5cff;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  background: linear-gradient(
    135deg,
    rgba(145, 75, 255, 0.22),
    rgba(145, 75, 255, 0.04)
  );
  box-shadow: 0 0 25px rgba(145, 75, 255, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.button:hover {
  transform: translateY(-3px);
  background: linear-gradient(
    135deg,
    rgba(145, 75, 255, 0.38),
    rgba(145, 75, 255, 0.08)
  );
  box-shadow: 0 0 30px rgba(145, 75, 255, 0.25);
}

/* HERO MACHINE IMAGE */

.hero-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
  animation: heroReveal 1s ease both;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  background: rgba(140, 69, 255, 0.22);
  filter: blur(65px);
  pointer-events: none;
}

.hero-visual img {
  position: relative;
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 15px 45px rgba(110, 40, 190, 0.18));
}

.concept-note {
  position: relative;
  margin-top: 12px;
  color: #777;
  font-size: 9px;
  letter-spacing: 0.16em;
  line-height: 1.6;
  text-align: center;
}

/* GENERAL SECTIONS */

.section {
  position: relative;
  padding: 125px 8%;
  border-top: 1px solid rgba(165, 92, 255, 0.12);
  background:
    radial-gradient(
      circle at 90% 20%,
      rgba(110, 40, 180, 0.07),
      transparent 35%
    ),
    #000;
}

.section-label {
  margin-bottom: 25px;
  color: #a66cff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.25em;
}

h2 {
  max-width: 900px;
  font-size: clamp(3rem, 5.7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.section-text {
  max-width: 700px;
  margin-top: 30px;
  color: #999;
  font-size: 19px;
  line-height: 1.75;
}

/* CONCEPT CARDS */

.concept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 65px;
}

.concept-card {
  min-height: 250px;
  padding: 45px;
  border: 1px solid rgba(166, 108, 255, 0.28);
  border-radius: 10px;
  background:
    radial-gradient(
      circle at 90% 0%,
      rgba(130, 60, 220, 0.14),
      transparent 45%
    ),
    #050505;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.concept-card:hover {
  transform: translateY(-5px);
  border-color: rgba(166, 108, 255, 0.65);
  box-shadow: 0 15px 45px rgba(100, 30, 190, 0.12);
}

.concept-card h3 {
  margin-bottom: 18px;
  font-size: 28px;
  line-height: 1.2;
}

.concept-card p {
  max-width: 520px;
  color: #999;
  font-size: 16px;
  line-height: 1.75;
}

/* LOCATION IMAGE SHOWCASE */

.showcase {
  overflow: hidden;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 60px;
}

.showcase-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(166, 108, 255, 0.25);
  border-radius: 12px;
  background: #080808;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.showcase-card:first-child {
  grid-column: 1 / -1;
}

.showcase-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.3 / 1;
  object-fit: cover;
  background: #080808;
}

.showcase-card figcaption {
  padding: 20px 24px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  border-top: 1px solid rgba(166, 108, 255, 0.16);
}

.showcase-card:hover {
  transform: translateY(-5px);
  border-color: rgba(166, 108, 255, 0.65);
  box-shadow: 0 15px 45px rgba(100, 30, 190, 0.12);
}

.showcase-disclaimer {
  margin-top: 24px;
  color: #777;
  font-size: 12px;
  line-height: 1.7;
}

/* LOCATIONS */

.location-section {
  background:
    radial-gradient(
      circle at 10% 50%,
      rgba(130, 50, 220, 0.07),
      transparent 35%
    ),
    #000;
}

.location-content {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 75px;
  margin-top: 65px;
}

.location-copy .button {
  margin-top: 30px;
}

.location-points {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.location-point {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 18px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.location-point:last-child {
  border-bottom: none;
}

.location-point > span {
  color: #a66cff;
  font-size: 13px;
  font-weight: 800;
}

.location-point h3 {
  font-size: 22px;
  line-height: 1.35;
}

.location-point p {
  grid-column: 2;
  margin-top: 9px;
  color: #888;
  font-size: 15px;
  line-height: 1.7;
}

/* CONTACT */

.contact {
  padding-bottom: 110px;
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(126, 56, 220, 0.12),
      transparent 40%
    ),
    #000;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 65px;
  margin-top: 65px;
}

.contact-details {
  padding: 45px;
  min-width: 0;
  border: 1px solid rgba(166, 108, 255, 0.55);
  border-radius: 10px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(125, 58, 220, 0.18),
      transparent 45%
    ),
    rgba(5, 5, 5, 0.75);
  box-shadow: 0 0 60px rgba(110, 40, 190, 0.08);
}

.contact-label {
  margin-bottom: 30px;
  color: #a66cff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.6;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 22px;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
  overflow-wrap: anywhere;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.contact-item:hover {
  color: #b98aff;
  transform: translateX(4px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(166, 108, 255, 0.55);
  border-radius: 50%;
  color: #a66cff;
  font-size: 17px;
}

.contact-note {
  max-width: 600px;
  margin-top: 28px;
  color: #777;
  font-size: 14px;
  line-height: 1.7;
}

/* FOOTER */

footer {
  padding: 28px 8%;
  border-top: 1px solid rgba(165, 92, 255, 0.12);
  color: #666;
  font-size: 12px;
  line-height: 1.7;
}

/* ANIMATIONS */

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* TABLET */

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.8fr);
    padding-left: 6%;
    padding-right: 6%;
    gap: 28px;
  }

  .section {
    padding-left: 6%;
    padding-right: 6%;
  }

  .location-content,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .contact-details {
    padding: 38px;
  }
}

/* MOBILE */

@media (max-width: 768px) {
  html {
    scroll-padding-top: 75px;
  }

  .navbar {
    height: 72px;
    padding: 0 16px;
    gap: 12px;
  }

  .logo img {
    width: 108px;
  }

  .nav-links {
    gap: clamp(7px, 2vw, 13px);
    flex-shrink: 1;
  }

  .nav-links a {
    font-size: clamp(8px, 1.8vw, 11px);
    white-space: nowrap;
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 135px 24px 75px;
  }

  .hero-content {
    max-width: 620px;
  }

  .eyebrow {
    margin-bottom: 20px;
    font-size: 10px;
    letter-spacing: 0.2em;
  }

  h1 {
    font-size: clamp(3rem, 12vw, 5rem);
    line-height: 0.96;
  }

  .hero-text {
    margin-top: 25px;
    font-size: 17px;
    line-height: 1.7;
  }

  .hero-visual {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
  }

  .hero-visual img {
    max-height: 560px;
  }

  .button {
    width: 100%;
    padding: 16px 18px;
    text-align: center;
  }

  .section {
    padding: 85px 24px;
  }

  .section-label {
    margin-bottom: 20px;
    font-size: 10px;
    letter-spacing: 0.2em;
  }

  h2 {
    font-size: clamp(2.8rem, 11vw, 4.5rem);
    line-height: 1;
  }

  .section-text {
    margin-top: 24px;
    font-size: 17px;
    line-height: 1.7;
  }

  .concept-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 42px;
  }

  .concept-card {
    min-height: auto;
    padding: 32px 26px;
  }

  .concept-card h3 {
    margin-bottom: 14px;
    font-size: 25px;
  }

  .concept-card p {
    font-size: 15px;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 38px;
  }

  .showcase-card:first-child {
    grid-column: auto;
  }

  .showcase-card img,
  .showcase-card:first-child img {
    aspect-ratio: 1.65 / 1;
  }

  .showcase-card figcaption {
    padding: 16px 18px;
    font-size: 15px;
  }

  .showcase-disclaimer {
    font-size: 11px;
  }

  .location-content {
    margin-top: 42px;
    gap: 42px;
  }

  .location-point {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 12px;
  }

  .location-point h3 {
    font-size: 20px;
  }

  .location-point p {
    font-size: 14px;
  }

  .contact-layout {
    margin-top: 40px;
    gap: 35px;
  }

  .contact-details {
    padding: 30px 22px;
  }

  .contact-label {
    margin-bottom: 24px;
    font-size: 10px;
  }

  .contact-item {
    gap: 12px;
    font-size: clamp(16px, 4.5vw, 23px);
  }

  .contact-icon {
    width: 43px;
    height: 43px;
    font-size: 14px;
  }

  .contact-note {
    margin-top: 24px;
    font-size: 13px;
  }

  footer {
    padding: 25px 20px;
    text-align: center;
  }
}

/* SMALL PHONES */

@media (max-width: 380px) {
  .navbar {
    padding: 0 10px;
    gap: 7px;
  }

  .logo img {
    width: 90px;
  }

  .nav-links {
    gap: 7px;
  }

  .nav-links a {
    font-size: 8px;
  }

  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .contact-details {
    padding: 25px 17px;
  }

  .contact-item {
    font-size: 15px;
  }

  .contact-icon {
    width: 38px;
    height: 38px;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
