@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Manrope:wght@300;400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg-editorial: #F7F7F4;
  --bg-pure: #FFFFFF;
  --text-primary: #141518;
  --text-secondary: #575962;
  --text-muted: #8E909A;
  
  --color-yellow: #FFCC00;
  --color-yellow-hover: #E5B700;
  --color-yellow-light: #FFFBE6;
  
  --color-charcoal: #141518;
  --color-charcoal-card: #181A20;
  --border-light: #E6E6E0;
  
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-editorial);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-editorial);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
}

/* -------------------------------------------------------------
   SITE INTRO PRELOADER & BIG LOGO ANIMATION
------------------------------------------------------------- */
#site-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: #141518;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

#site-preloader.fade-out {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

@keyframes preloader-logo-reveal {
  0% {
    opacity: 0;
    transform: scale(0.88) translateY(12px);
    filter: drop-shadow(0 0 0 rgba(255, 204, 0, 0));
  }
  60% {
    opacity: 1;
    transform: scale(1.03) translateY(0);
    filter: drop-shadow(0 0 25px rgba(255, 204, 0, 0.35));
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 0 12px rgba(255, 204, 0, 0.2));
  }
}

.preloader-logo-anim {
  animation: preloader-logo-reveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes preloader-progress-fill {
  0% {
    width: 0%;
    opacity: 0.6;
  }
  50% {
    width: 70%;
    opacity: 1;
  }
  100% {
    width: 100%;
    opacity: 1;
  }
}

.preloader-progress-bar {
  animation: preloader-progress-fill 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* -------------------------------------------------------------
   LOGO HOVER GLOW EFFECT
------------------------------------------------------------- */
.brand-logo-img {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow, filter;
}

.brand-logo-img:hover,
.group:hover .brand-logo-img {
  transform: translateY(-2px) scale(1.04);
  border-color: #FFCC00 !important;
  box-shadow: 0 0 25px rgba(255, 204, 0, 0.75), 0 0 10px rgba(255, 204, 0, 0.9);
  filter: brightness(1.04);
}

/* -------------------------------------------------------------
   SLIDING COLOUR BUTTON ANIMATIONS
------------------------------------------------------------- */
.btn-editorial-yellow {
  position: relative;
  background-color: var(--color-yellow);
  color: var(--color-charcoal);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  padding: 0.9rem 1.75rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: color 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s ease, box-shadow 0.25s ease;
  touch-action: manipulation;
}

.btn-editorial-yellow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-charcoal);
  z-index: -1;
  transform: translateX(-101%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-editorial-yellow:hover {
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.btn-editorial-yellow:hover::before {
  transform: translateX(0);
}

.btn-editorial-yellow:hover [data-lucide] {
  color: var(--color-yellow);
  transform: translateX(3px);
}

.btn-editorial-yellow [data-lucide] {
  transition: transform 0.25s ease, color 0.25s ease;
}

/* Outline Sliding Button */
.btn-editorial-outline {
  position: relative;
  border: 1.5px solid var(--color-charcoal);
  color: var(--color-charcoal);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  padding: 0.9rem 1.75rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  background: transparent;
  overflow: hidden;
  z-index: 1;
  transition: color 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, transform 0.25s ease, box-shadow 0.25s ease;
  touch-action: manipulation;
}

.btn-editorial-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-yellow);
  z-index: -1;
  transform: translateX(-101%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-editorial-outline:hover {
  color: var(--color-charcoal);
  border-color: var(--color-yellow);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 204, 0, 0.35);
}

.btn-editorial-outline:hover::before {
  transform: translateX(0);
}

/* -------------------------------------------------------------
   ENQUIRY FORM SERVICE SELECTION PILLS
------------------------------------------------------------- */
.service-pill-checkbox {
  position: relative;
  cursor: pointer;
  border: 1.5px solid var(--border-light);
  border-radius: 6px;
  padding: 0.7rem 0.85rem;
  background-color: #FFFFFF;
  transition: all 0.22s ease;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-pill-checkbox:hover {
  border-color: #141518;
  background-color: #FAFAF7;
}

.service-pill-checkbox input[type="checkbox"] {
  accent-color: #141518;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.service-pill-checkbox.active-pill {
  border-color: #141518;
  background-color: #FFFDE6;
  box-shadow: 0 0 0 1px #141518;
}

.service-pill-checkbox.active-pill .pill-title {
  color: #141518;
  font-weight: 700;
}

/* Service Item Row */
.editorial-service-row {
  border-top: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  touch-action: manipulation;
}

.editorial-service-row:last-child {
  border-bottom: 1px solid var(--border-light);
}

.editorial-service-row.active {
  background-color: #FFFFFF;
}

.editorial-service-row.active .service-yellow-indicator {
  opacity: 1;
  transform: scaleY(1);
}

.editorial-service-row .service-yellow-indicator {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--color-yellow);
  opacity: 0;
  transform: scaleY(0);
  transform-origin: center;
  transition: all 0.25s ease;
}

.editorial-service-row:hover .service-arrow-icon {
  transform: translate(3px, -3px);
  color: var(--color-charcoal);
}

.service-arrow-icon {
  transition: transform 0.25s ease, color 0.25s ease;
}

/* Form Inputs */
.editorial-input {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 0.85rem 1rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.925rem;
  color: var(--text-primary);
  min-height: 46px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.editorial-input:focus {
  border-color: var(--color-charcoal);
  outline: none;
  box-shadow: 0 0 0 2px rgba(20, 21, 24, 0.1);
}

/* Subtle image frame */
.editorial-img-frame {
  position: relative;
  background-color: #E2E3DD;
  overflow: hidden;
  border-radius: 4px;
}

/* Sticky Navbar scroll effect */
.nav-scrolled {
  background-color: rgba(247, 247, 244, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* Utility Monospace Tag */
.tag-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Vertical Yellow Rule */
.hero-yellow-rule {
  width: 4px;
  background-color: var(--color-yellow);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top;
}

/* Mobile Responsive Refinements */
@media (max-width: 640px) {
  .editorial-input, input, textarea, select {
    font-size: 16px !important; /* Prevents auto-zoom in Safari iOS */
  }

  .btn-editorial-yellow, .btn-editorial-outline {
    width: 100%;
    justify-content: center;
    padding: 0.95rem 1.25rem;
  }
  
  .tag-mono {
    font-size: 0.7rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
