/**
 * Nailed Right Roofing & Construction
 * Custom styles supplementing Tailwind CDN
 * Premium, minimalist, high-contrast
 */

:root {
  --accent: #f59e0b;
  --accent-dark: #d97706;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Premium button styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f59e0b;
  color: #18181b;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.btn-primary:hover {
  background-color: #d97706;
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.btn-primary:focus-visible {
  outline: 3px solid #fde047;
  outline-offset: 2px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #f4f4f5;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: 1px solid #3f3f46;
}
.btn-secondary:hover {
  background-color: #27272a;
  border-color: #52525b;
}
.btn-secondary:focus-visible {
  outline: 3px solid #fde047;
  outline-offset: 2px;
}

/* Form inputs premium */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  background-color: #18181b;
  border: 1px solid #3f3f46;
  color: #f4f4f5;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  font-size: 1rem;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}
input::placeholder,
textarea::placeholder {
  color: #71717a;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2371717a' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
  padding-right: 2.5rem;
}

/* Cards */
.service-card,
.trust-card,
.review-card {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.2s;
}
.service-card:hover,
.trust-card:hover,
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  border-color: #52525b;
}

/* Gallery */
.gallery-card {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid #27272a;
  background: #18181b;
  transition: border-color 0.2s;
}
.gallery-card:hover {
  border-color: #52525b;
}
.gallery-img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  display: block;
}
.gallery-card:hover .gallery-img {
  transform: scale(1.04);
}

/* Sticky mobile CTA bar */
#mobile-cta {
  box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.1);
}

/* Section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #27272a, transparent);
}

/* Hero overlay gradient for premium feel */
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(9, 9, 11, 0.55) 0%,
    rgba(9, 9, 11, 0.72) 45%,
    rgba(9, 9, 11, 0.88) 100%
  );
}

/* Strong typography for premium */
h1, .display {
  letter-spacing: -0.025em;
}

/* Focus visible for all interactive */
a:focus-visible,
button:focus-visible {
  outline: 3px solid #fde047;
  outline-offset: 2px;
}

/* Table-like for services if needed */
.service-list-item {
  transition: background-color 0.1s;
}
.service-list-item:hover {
  background-color: #18181b;
}

/* Schema is in HTML - no visual */

/* Print styles */
@media print {
  .no-print { display: none !important; }
  nav, #mobile-cta { display: none; }
  body { background: white; color: black; }
}