/* ==========================================================================
   Base
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #ff6b4a;
  color: #fbf8f2;
}

/* ==========================================================================
   Decorative grain / noise texture
   ========================================================================== */
.grain {
  position: relative;
}
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Underline / accent
   ========================================================================== */
.accent-underline {
  position: relative;
  display: inline-block;
}
.accent-underline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 0.32em;
  background: #ffd166;
  z-index: -1;
  opacity: 0.7;
}

/* ==========================================================================
   Fade-up scroll animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Card hover lift
   ========================================================================== */
.lift-card {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.lift-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -12px rgba(20, 21, 26, 0.18);
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Custom radio / segmented control
   ========================================================================== */
.service-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.service-option input:checked + .service-option-card {
  border-color: #14151a;
  background: #14151a;
  color: #fbf8f2;
}
.service-option input:checked + .service-option-card .service-option-desc {
  color: rgba(251, 248, 242, 0.65);
}
.service-option input:checked + .service-option-card .service-option-icon {
  background: #ff6b4a;
  color: #fbf8f2;
}

/* ==========================================================================
   Form field focus
   ========================================================================== */
.field-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field-input:focus {
  outline: none;
  border-color: #14151a;
  box-shadow: 0 0 0 4px rgba(20, 21, 26, 0.08);
}

/* ==========================================================================
   Scrollbar
   ========================================================================== */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #fbf8f2;
}
::-webkit-scrollbar-thumb {
  background: #d8cfba;
  border-radius: 999px;
}

/* ==========================================================================
   Loading spinner
   ========================================================================== */
.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(251, 248, 242, 0.35);
  border-top-color: #fbf8f2;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Blob shapes
   ========================================================================== */
.blob {
  border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
}

/* ==========================================================================
   Nav blur on scroll
   ========================================================================== */
#site-header.scrolled {
  background: rgba(251, 248, 242, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(20, 21, 26, 0.06);
}

/* Toast */
#toast {
  transform: translateY(140%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
#toast.show {
  transform: translateY(0);
}
