/* =========================================================
   P2A – BASE STYLES (selected parts: 1,2,3,4,5,6,7,8,10,15)
   ====================================================== */

/* 1. GLOBAL RESET */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: transparent;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: transparent;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff;
}

/* 2. UTILITIES – FADE MASK */
@layer utilities {
  .fade-mask {
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    animation: fadeMaskIn 1.5s ease-out forwards;
  }
}

/* 3. DESKTOP FADE-MASK SHAPE */
@media (min-width: 640px) {
  .fade-mask {
    -webkit-mask-image: linear-gradient(
      to right,
      rgba(0,0,0,0.00) 0%,
      rgba(0,0,0,0.30) 10%,
      rgba(0,0,0,0.70) 20%,
      rgba(0,0,0,1.00) 50%,
      rgba(0,0,0,1.00) 60%,
      rgba(0,0,0,0.70) 80%,
      rgba(0,0,0,0.30) 90%,
      rgba(0,0,0,0.00) 100%
    );
    mask-image: linear-gradient(
      to right,
      rgba(0,0,0,0.00) 0%,
      rgba(0,0,0,0.75) 20%,
      rgba(0,0,0,1.00) 50%,
      rgba(0,0,0,1.00) 60%,
      rgba(0,0,0,0.75) 80%,
      rgba(0,0,0,0.30) 90%,
      rgba(0,0,0,0.00) 100%
    );
  }
}

/* 4. MOBILE FADE-MASK SHAPE */
@media (max-width: 639px) {
  .fade-mask {
    -webkit-mask-image: linear-gradient(
      to right,
      rgba(0,0,0,0.00) 0%,
      rgba(0,0,0,0.25) 5%,
      rgba(0,0,0,0.50) 10%,
      rgba(0,0,0,0.80) 15%,
      rgba(0,0,0,0.99) 50%,
      rgba(0,0,0,0.99) 60%,
      rgba(0,0,0,0.80) 85%,
      rgba(0,0,0,0.50) 90%,
      rgba(0,0,0,0.25) 95%,
      rgba(0,0,0,0.00) 100%
    );
    mask-image: linear-gradient(
      to right,
      rgba(0,0,0,0.00) 0%,
      rgba(0,0,0,0.25) 5%,
      rgba(0,0,0,0.50) 10%,
      rgba(0,0,0,0.80) 15%,
      rgba(0,0,0,0.99) 50%,
      rgba(0,0,0,0.99) 60%,
      rgba(0,0,0,0.80) 85%,
      rgba(0,0,0,0.50) 90%,
      rgba(0,0,0,0.25) 95%,
      rgba(0,0,0,0.00) 100%
    );
  }
}

/* 5. FADE-MASK KEYFRAMES */
@keyframes fadeMaskIn {
  0% {
    -webkit-mask-position: left;
    mask-position: left;
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* 6. LOGO SHINE KEYFRAMES */
@keyframes logo-shine {
  0%   { background-position-x: 150%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { background-position-x: -150%; opacity: 0; }
}

/* 7. LOGO CONTAINER + SHINE MASK */
.logo-container {
  position: relative;
  overflow: hidden;
  display: inline-block;
  isolation: isolate;
  transform: translateZ(0);
}

.shine-mask {
  background: linear-gradient(
    330deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.4) 50%,
    rgba(255,255,255,0) 100%
  );
  background-size: 200% 100%;
  background-repeat: no-repeat;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.logo-container:hover .shine-mask,
.logo-container.animate-shine .shine-mask {
  animation: logo-shine 0.8s ease-out;
}

/* 8. BRAND TEXT (Plymouth To Airport) */
.brand--coloured,
.brand--coloured-local {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.28em;
}

.brand--coloured .w-plymouth {
  display: inline-block;
  line-height: 1.1;
  font-weight: 800;
  background: linear-gradient(90deg, #ff4242 0%, #ff5858 45%, #ff787a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.brand--coloured .w-to {
  display: inline-block;
  line-height: 1.1;
  font-weight: 800;
  color: #ecf0f1;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
}

.brand--coloured .w-airport {
  display: inline-block;
  line-height: 1.1;
  font-weight: 800;
  background: linear-gradient(90deg, #7bb0ff 0%, #6ea8ff 45%, #2e8cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* 9. BRAND TEXT (Plymouth Local Taxi) */
.brand--coloured-local .w-plymouth {
  display: inline-block;
  line-height: 1.1;
  font-weight: 800;
  background: linear-gradient(90deg, #7bb0ff 0%, #6ea8ff 45%, #2e8cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.brand--coloured-local .w-local {
  display: inline-block;
  line-height: 1.1;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
}

.brand--coloured-local .w-taxi {
  display: inline-block;
  line-height: 1.1;
  font-weight: 800;
  background: linear-gradient(90deg, #ffe066 0%, #ffd43b 45%, #f4b400 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* 9. GOOGLE PLACES STACKING */
.pac-container {
  z-index: 300 !important;
}

html.p2a-modal-open .pac-container,
body.p2a-modal-open .pac-container {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* 10. GLASS PANELS (cookie, generic) */
.glass-panel,
#cookie-banner {
  box-shadow:
    0 30px 80px rgba(0,0,0,0.9),
    0 0 60px rgba(0,0,0,0.9);
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: 1.5rem;
  isolation: isolate;
  contain: paint;
  transform: translateZ(0);
}

