/* RESET */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: #0f141a;
  color: #f1f1f1;
  line-height: 1.6;
}

/* HERO / HEADER */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0f141a 0%, #0b0f14 100%);
  padding: 40px 20px 18px;
  text-align: center;
}

/* Thin rainbow accent line */
.hero::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    #00a8e8,
    #2ecc71,
    #f1c40f,
    #e67e22,
    #e74c3c
  );
  opacity: 0.9;
}

/* Brighter paint-spill glow */
.hero::after {
  content: "";
  position: absolute;
  left: -25%;
  right: -25%;
  bottom: -150px;
  height: 300px;
  background: linear-gradient(
    90deg,
    rgba(0,168,232,0.45),
    rgba(46,204,113,0.45),
    rgba(241,196,15,0.45),
    rgba(230,126,34,0.45),
    rgba(231,76,60,0.45)
  );
  filter: blur(100px);
  opacity: 0.65;
  pointer-events: none;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* LOGO IMAGE (REPLACES TEXT LOGO) */
.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

/* IMPORTANT: width-driven, no max-height squish */
.brand-logo {
  width: 100%;
  max-width: 560px;     /* cap on desktop */
  height: auto;         /* prevents distortion */
  display: block;
  object-fit: contain;  /* safe even if something weird happens */
  filter: drop-shadow(0 12px 22px rgba(0,0,0,0.45));
}

/* Keep an H1 for SEO/accessibility, but hide it visually */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-tagline {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 1rem;
  opacity: 0.85;
}

/* HERO CONTACT CTA */
.hero-cta {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* IDENTICAL CTA BUTTONS */
.cta-phone,
.cta-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  background: #2ecc71;
  color: #0f141a;
  border: 2px solid #2ecc71;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(46,204,113,0.14); /* slightly less "green glow" */
}

.cta-phone:hover,
.cta-email:hover {
  background: #27ae60;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(46,204,113,0.18);
}

/* MAIN CONTENT */
.main-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 20px 60px;
  z-index: 1;
}

/* Colour glow behind main section */
.main-content::before {
  content: "";
  position: absolute;
  top: -140px;
  left: -30%;
  right: -30%;
  height: 360px;
  background: linear-gradient(
    90deg,
    rgba(0,168,232,0.25),
    rgba(46,204,113,0.25),
    rgba(241,196,15,0.25),
    rgba(230,126,34,0.25),
    rgba(231,76,60,0.25)
  );
  filter: blur(140px);
  opacity: 0.65;
  z-index: -1;
  pointer-events: none;
}

/* UNDER CONSTRUCTION */
.under-construction {
  text-align: center;
  margin-bottom: 26px;
}

.under-construction h2 {
  background: linear-gradient(90deg, #2ecc71, #f1c40f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px; /* slightly tighter */
}

.under-construction p {
  opacity: 0.9;
  margin: 0; /* avoids sneaky default paragraph spacing */
}

/* SERVICES */
/* SERVICES (TILES) */
.services {
  position: relative;
  background: linear-gradient(180deg, #151b22 0%, #12171d 100%);
  padding: 28px;
  margin: 0 auto;
  max-width: 900px;
  border-radius: 8px;
  box-shadow:
    0 20px 40px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

/* Single rainbow strip */
.services::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    180deg,
    #00a8e8,
    #2ecc71,
    #f1c40f,
    #e67e22,
    #e74c3c
  );
  opacity: 0.9;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.services h3 {
  margin: 0 0 18px;
  font-size: 1.5rem;
}

/* GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

/* CARD */
.service-card {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  background: #0b0f14;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 14px 28px rgba(0,0,0,0.35);
  transform: translateZ(0);
}

/* Make them “square-ish” */
.service-card::before {
  content: "";
  display: block;
  padding-top: 100%;
}

/* Image fills the tile */
.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* IMPORTANT: stops squish */
  object-position: center;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
}

/* Dark overlay for readable text */
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,0.25) 0%,
      rgba(0,0,0,0.55) 70%,
      rgba(0,0,0,0.75) 100%
    );
  pointer-events: none;
}

/* Label */
.service-label {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 10px 10px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0.3px;
  background: rgba(15, 20, 26, 0.55);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(6px);
}

/* Hover: subtle lift + glow (not tacky) */
.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(46,204,113,0.35);
}

.service-card:hover img {
  transform: scale(1.06);
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card::before { padding-top: 65%; } /* less tall on tiny screens */
}

/* FOOTER */
.footer {
  background: #0b0f14;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* SMALL SCREEN TWEAKS */
@media (max-width: 600px) {
  .hero {
    padding: 28px 16px 14px;
  }

  .hero-cta {
    gap: 12px;
  }

  .cta-phone,
  .cta-email {
    width: 100%;        /* stack nicely */
    max-width: 340px;
  }
}
