/**
 * Daytona Pest Control - DPC-Specific Styles (Integrated)
 * No Tailwind-colliding utilities; clip-angle uses calc() per plan.
 */

:root {
  --color-primary: #f97316;
  --color-primary-dark: #ea580c;
  --color-primary-light: #fdba74;
  --color-black: #18181b;
  --color-gray: #27272a;
  --color-white: #fafafa;
  --color-text: #3f3f46;
  --color-text-light: #71717a;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-xl: 0 20px 25px -5px rgba(24, 24, 27, 0.1), 0 8px 10px -6px rgba(24, 24, 27, 0.1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --z-section-light: 20;
  --z-section-dark: 30;
  --z-content: 25;
  --roach-default-z: 55;
  --roach-behind-light-z: 15;
  --roach-behind-dark-z: 29;
  --roach-behind-pricing-z: 15;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #e4e4e7;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 9999px;
  border: 2px solid #e4e4e7;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark);
}

::selection {
  background-color: var(--color-primary);
  color: var(--color-white);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: inherit;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Plan: swarm calc() version */
.clip-angle-bottom {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), 0 100%);
}

.clip-angle-top {
  clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
}

.pattern-overlay {
  position: relative;
}

.pattern-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.diagonal-stripes {
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.03) 10px,
    rgba(255, 255, 255, 0.03) 20px
  );
}

.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.section-content {
  position: relative;
  z-index: var(--z-content);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 0.5rem 0.5rem;
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* Roach layer */
#roach-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: var(--roach-default-z);
  overflow: visible;
}

#roach-layer.behind,
#roach-layer.behind-light {
  z-index: var(--roach-behind-light-z);
}

#roach-layer.behind-dark {
  z-index: var(--roach-behind-dark-z);
}

#roach-layer.behind-pricing {
  z-index: var(--roach-behind-pricing-z);
}

#the-roach {
  position: absolute;
  will-change: transform;
  backface-visibility: hidden;
}

/* ===== Header logo: larger with minimal padding (nav height unchanged) ===== */
#main-header .header-logo-img {
  width: 3.25rem;   /* 52px - larger than previous 40px */
  height: 3.25rem;
  object-fit: contain;
}
#main-header .header-logo-wrap {
  gap: 0.375rem;    /* minimal padding between logo and text */
}

/* ===== Hero background image + faded white overlay (behind "DON'T LET THEM MOVE IN.") ===== */
.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../../images/home-hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

#section-hero,
#section-experience,
#section-pricing {
  position: relative;
  z-index: var(--z-section-light);
}

#section-why,
#section-reviews {
  position: relative;
  z-index: var(--z-section-dark);
}

/* ===== Pre-hide animated elements (prevents FOUC / first-load blink) ===== */
/* GSAP fromTo will take over inline styles once ScrollTrigger is created.   */
.hero-el,
.exp-image,
.exp-badge,
.exp-text,
.why-header,
.why-card,
.review-header,
.review-card,
.pricing-header,
.pricing-card {
  opacity: 0;
}

/* No-JS fallback: if scripting is unavailable, show everything */
@media (scripting: none) {
  .hero-el, .exp-image, .exp-badge, .exp-text,
  .why-header, .why-card, .review-header, .review-card,
  .pricing-header, .pricing-card {
    opacity: 1 !important;
  }
}

/* Additional fallback via <noscript> or reduced-motion */
.reduce-motion .hero-el,
.reduce-motion .exp-image,
.reduce-motion .exp-badge,
.reduce-motion .exp-text,
.reduce-motion .why-header,
.reduce-motion .why-card,
.reduce-motion .review-header,
.reduce-motion .review-card,
.reduce-motion .pricing-header,
.reduce-motion .pricing-card {
  opacity: 1 !important;
  transform: none !important;
}
