/* Arizona Pristine Roofing - Global Styles */

:root {
  --color-primary: #213565;
  --color-secondary: #D93F1C;
  --color-accent: #c23819;
  --color-tertiary: #F0A202;
  --color-nav-bg: #1e3054;
  --color-foreground: #213565;
  --color-muted: #555570;
}

*, *::before, *::after {
  border-color: #e5e7eb;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #000;
  color: #fff;
  padding: 0.75rem 1.5rem;
  z-index: 9999;
  font-size: 1rem;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* Scroll-triggered fade-in */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero satisfaction text pulse */
@keyframes gold-bump {
  0%, 100% { color: white; }
  50% { color: #F0A202; }
}
.gold-bump {
  animation: gold-bump 4s infinite;
}

/* Shimmer button effect */
@keyframes shimmer {
  0% { transform: skewX(-12deg) translateX(-200%); }
  100% { transform: skewX(-12deg) translateX(200%); }
}

/* Footer cert logo scroll */
@keyframes footer-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
#footer-cert-track {
  animation: footer-scroll 20s linear infinite;
}
#footer-cert-track:hover {
  animation-play-state: paused;
}

/* Team modal scrollbar hide */
#team-modal-inner::-webkit-scrollbar { display: none; }

/* Missing Tailwind utilities not in compiled CSS */
@media (min-width: 768px) {
  .md\:-mt-48 { margin-top: -12rem; }
}

/* Promo ticker */
.promo-ticker {
  white-space: nowrap;
}
.promo-ticker-text {
  display: inline-block;
  animation: ticker-scroll 25s linear infinite;
  font-size: 0.875rem;
}
@keyframes ticker-scroll {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* Hero fullscreen on mobile -- fills viewport minus header */
@media (max-width: 1023px) {
  .hero-fullscreen {
    min-height: calc(100svh - 7rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Hero mobile CTA buttons */
.hero-cta-call, .hero-cta-estimate {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 0.75rem;
  text-decoration: none;
}
.hero-cta-call {
  background: #fff;
  color: var(--color-primary);
}
.hero-cta-estimate {
  background: var(--color-secondary);
  color: #fff;
}

/* Text Us FAB -- stacked circle */
.text-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  width: 4rem;
  height: 4rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: background 0.2s;
}
.text-fab svg { width: 22px; height: 22px; }
.text-fab:hover { background: #1a2a50; }

/* Block pattern sidebar cards -- match prod space-y-8 (32px gap) */
.pristine-sidebar-card {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
  margin-bottom: 32px;
}
.pristine-sidebar-card h3 {
  margin-bottom: 16px !important;
}
.pristine-emergency-card {
  margin-bottom: 0;
}
/* Checkmark icons on all lists inside sidebar cards -- survives WP block editor edits */
.pristine-sidebar-card ul,
.pristine-sidebar-card ol,
.pristine-sidebar-card .wp-block-list,
.pristine-sidebar-card p + p {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0;
}
.pristine-sidebar-card li {
  position: relative;
  padding-left: 28px !important;
  margin-bottom: 10px;
  line-height: 1.5;
  list-style: none !important;
}
.pristine-sidebar-card li::before {
  content: '' !important;
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23213565' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.801 10A10 10 0 1 1 17 3.335'/%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}
/* Medal icon on guarantee heading */
.pristine-sidebar-guarantee h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pristine-sidebar-guarantee h3::before {
  content: '';
  width: 24px;
  height: 24px;
  min-width: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23F0A202' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526'/%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}
/* Green checkmarks for guarantee card */
.pristine-sidebar-guarantee li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.801 10A10 10 0 1 1 17 3.335'/%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3C/svg%3E") !important;
}

/* Emergency card — match prod sidebar-service.php exactly */
/* Prod: bg-secondary rounded-2xl p-6 text-white shadow-lg */
.pristine-emergency-card {
  border-radius: 1rem !important;
  padding: 1.5rem !important;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1) !important;
}
/* Prod: flex items-center gap-3 mb-3 */
.pristine-emergency-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
}
.pristine-emergency-card h3::before {
  content: '';
  width: 24px;
  height: 24px;
  min-width: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2a9 9 0 0 1 9 9'/%3E%3Cpath d='M13 6a5 5 0 0 1 5 5'/%3E%3Cpath d='M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}
/* Prod: text-white/80 text-sm mb-4 */
.pristine-emergency-card p {
  color: rgba(255,255,255,0.8) !important;
  font-size: 0.875rem !important;
  margin-bottom: 1rem !important;
}
/* Prod: flex items-center justify-center gap-2 bg-white text-secondary font-bold py-3 px-6 rounded-full */
.pristine-emergency-card .wp-block-button__link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700 !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 9999px !important;
  transition: transform 0.15s;
}
.pristine-emergency-card .wp-block-button__link:hover {
  transform: scale(1.05);
}
.pristine-emergency-card .wp-block-button__link::before {
  content: '';
  width: 18px;
  height: 18px;
  min-width: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23D93F1C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* Blank page content area -- match service-content typography */
.blank-page-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem) !important;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}
.blank-page-content h3 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 700;
  color: var(--color-primary);
}
.blank-page-content .wp-block-columns > .wp-block-column:first-child p {
  color: #374151;
  line-height: 1.7;
  margin-bottom: 1rem;
}
/* Override inline font-size on headings inside content column */
.blank-page-content .wp-block-columns > .wp-block-column:first-child .wp-block-heading[style*="font-size"] {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem) !important;
}
.blank-page-content .wp-block-columns > .wp-block-column:first-child h3.wp-block-heading[style*="font-size"] {
  font-size: clamp(1.125rem, 2vw, 1.375rem) !important;
}

/* Block editor FAQ — simple style (sidebar pages) */
.service-content .wp-block-details {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  margin-bottom: 0.75rem;
}
.service-content .wp-block-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  cursor: pointer;
  list-style: none;
  color: #111827;
  font-weight: 600;
  font-size: 1rem;
}
.service-content .wp-block-details summary::-webkit-details-marker { display: none; }
.service-content .wp-block-details summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: #9ca3af;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.service-content .wp-block-details[open] summary::after {
  content: '−';
}
.service-content .wp-block-details p {
  padding: 0 1.25rem 1.25rem;
  color: #374151;
  line-height: 1.6;
  margin: 0;
}

/* Block editor FAQ — styled cards (full-width pages, matches Insurance Claims) */
.pristine-faq-item {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: box-shadow 0.3s;
  margin-bottom: 1rem;
}
.pristine-faq-item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.pristine-faq-item summary {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  list-style: none;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  gap: 1rem;
}
.pristine-faq-item summary::-webkit-details-marker { display: none; }
.pristine-faq-item summary::before {
  content: '?';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: #dbeafe;
  color: #213565;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.pristine-faq-item summary::after {
  content: '→';
  margin-left: auto;
  color: #9ca3af;
  flex-shrink: 0;
  transition: transform 0.3s;
  font-size: 1.125rem;
}
.pristine-faq-item[open] summary::after {
  content: '←';
}
.pristine-faq-item > p,
.pristine-faq-item > .wp-block-details__content,
.pristine-faq-item > :not(summary) {
  padding: 0 1.5rem 1.5rem 4.75rem;
  color: #4b5563;
  line-height: 1.7;
  border-top: 1px solid #e5e7eb;
  margin: 0;
  padding-top: 1rem;
}
