/* ============================================
   Kurt's Magical Painting — Custom Styles
   Tailwind handles utilities; this file covers
   component classes, animations, and overrides.
   ============================================ */

/* ---------- Base ---------- */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  font-size: 16px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: rgba(201, 169, 110, 0.3);
  color: #f5f0eb;
}

/* ---------- Navigation ---------- */

#navbar {
  background-color: rgba(11, 11, 11, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

#navbar.scrolled {
  background-color: rgba(11, 11, 11, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.nav-link {
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #c9a96e;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #c9a96e;
  transition: width 0.2s ease;
}

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

.mobile-link {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  color: rgba(245, 240, 235, 0.7);
  transition: color 0.15s ease;
}

.mobile-link:hover {
  color: #c9a96e;
}

/* ---------- Buttons ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background-color: #c9a96e;
  color: #0b0b0b;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background-color: #b8963e;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border: 1px solid rgba(201, 169, 110, 0.4);
  color: #c9a96e;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-secondary:hover {
  border-color: #c9a96e;
  background-color: rgba(201, 169, 110, 0.08);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f5f0eb;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.04);
}

/* ---------- Service Cards ---------- */

.service-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background-color: #141414;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  border-color: rgba(201, 169, 110, 0.25);
  transform: translateY(-4px);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background-color: rgba(201, 169, 110, 0.1);
  color: #c9a96e;
  border-radius: 2px;
  margin-bottom: 1.5rem;
  transition: background-color 0.2s ease;
}

.service-card:hover .service-icon {
  background-color: rgba(201, 169, 110, 0.18);
}

/* ---------- Process Steps ---------- */

.process-step {
  padding: 2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.2s ease;
}

.process-step:hover {
  border-left-color: #c9a96e;
}

.process-number {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: rgba(201, 169, 110, 0.25);
  line-height: 1;
  margin-bottom: 1rem;
}

.process-step:hover .process-number {
  color: rgba(201, 169, 110, 0.5);
}

/* ---------- Testimonials ---------- */

.testimonial-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .testimonial-slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .testimonial-slide {
    flex: 0 0 33.333%;
  }
}

.testimonial-card {
  padding: 2rem;
  background-color: #141414;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card blockquote {
  flex: 1;
}

/* ---------- Slider Controls ---------- */

.slider-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #f5f0eb;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.slider-arrow:hover {
  border-color: #c9a96e;
  background-color: rgba(201, 169, 110, 0.1);
}

.slider-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  transition: background-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.slider-dot.active {
  background-color: #c9a96e;
  transform: scale(1.3);
}

/* ---------- Serving Areas ---------- */

.area-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  background-color: rgba(201, 169, 110, 0.06);
  border: 1px solid rgba(201, 169, 110, 0.12);
  border-radius: 2px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #f5f0eb;
  letter-spacing: 0.04em;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.area-tag:hover {
  border-color: rgba(201, 169, 110, 0.35);
  background-color: rgba(201, 169, 110, 0.1);
}

/* ---------- Awards ---------- */

.award-card {
  padding: 1.5rem;
  min-height: 12.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.award-card:hover {
  border-color: rgba(201, 169, 110, 0.35);
  background-color: rgba(201, 169, 110, 0.04);
  transform: translateY(-3px);
}

.award-badge {
  width: 100%;
  max-width: 8.5rem;
  height: auto;
  object-fit: contain;
}

.award-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.62);
}

/* ---------- Works ---------- */

.album-card {
  background-color: #141414;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.album-card:hover {
  border-color: rgba(201, 169, 110, 0.35);
  transform: translateY(-3px);
}

.album-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.album-content {
  padding: 1.5rem;
}

.album-meta {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(201, 169, 110, 0.88);
}

.masonry-grid {
  column-count: 1;
  column-gap: 1rem;
}

@media (min-width: 640px) {
  .masonry-grid { column-count: 2; }
}

@media (min-width: 1024px) {
  .masonry-grid { column-count: 3; }
}

.random-image-card {
  break-inside: avoid;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background-color: #141414;
  overflow: hidden;
}

.random-image-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.random-image-card:hover img {
  transform: scale(1.015);
  opacity: 0.95;
}

/* ---------- Footer ---------- */

.footer-link {
  font-size: 0.875rem;
  color: rgba(245, 240, 235, 0.5);
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: #c9a96e;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(245, 240, 235, 0.5);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.social-icon:hover {
  color: #c9a96e;
  border-color: rgba(201, 169, 110, 0.4);
}

/* ---------- Animations ---------- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease forwards;
  opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

@keyframes bounceSlow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.animate-bounce-slow {
  animation: bounceSlow 2.5s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { cy: 10; opacity: 1; }
  100% { cy: 22; opacity: 0; }
}

.animate-scroll-dot {
  animation: scrollDot 1.8s ease-in-out infinite;
}

/* ---------- Hero Side Card ---------- */

.hero-side-card {
  background-color: rgba(20, 20, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 1.5rem;
}

.hero-side-kicker {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201, 169, 110, 0.9);
  margin-bottom: 0.75rem;
}

.hero-side-point {
  color: rgba(245, 240, 235, 0.76);
  font-size: 0.9375rem;
  line-height: 1.55;
  padding-left: 1rem;
  position: relative;
}

.hero-side-point::before {
  content: '';
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 9999px;
  background-color: rgba(201, 169, 110, 0.85);
  position: absolute;
  top: 0.5rem;
  left: 0;
}

/* Intersection Observer reveal */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hamburger animation ---------- */

#menu-toggle.open #bar1 {
  transform: rotate(45deg) translateY(3.5px);
}

#menu-toggle.open #bar2 {
  opacity: 0;
}

#menu-toggle.open #bar3 {
  transform: rotate(-45deg) translateY(-3.5px);
}

/* ---------- Focus states ---------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid #c9a96e;
  outline-offset: 2px;
}

/* ---------- Responsive fine-tuning ---------- */

@media (max-width: 639px) {
  .testimonial-card {
    padding: 1.5rem;
  }

  .service-card {
    padding: 1.5rem;
  }
}
