/*
Theme Name: Winn Plumbing
Description: Premium WordPress theme for Winn Plumbing - a custom theme featuring modern design, transparent pricing, and exceptional user experience.
Version: 2.202510301948
Author: Winn Plumbing
Text Domain: winn-plumbing
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Winn Plumbing Premium Design System 
Apple-level minimalism with premium plumbing aesthetic
All colors MUST be HSL.
*/

/* Base colors - Warm, premium palette */
:root {
  --background: 0 0% 98%; /* Warm white #FAFAFA */
  --foreground: 0 0% 11.8%; /* Charcoal #1E1E1E */

  --card: 0 0% 100%;
  --card-foreground: 0 0% 11.8%;

  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 11.8%;

  /* Primary - Deep copper for CTAs only */
  --primary: 16 65% 47%; /* Deep copper #C75C2C */
  --primary-foreground: 0 0% 98%;

  /* Secondary - Soft slate for metadata */
  --secondary: 203 11% 46%; /* Soft slate #6D7A82 */
  --secondary-foreground: 0 0% 98%;

  --muted: 0 0% 96%;
  --muted-foreground: 203 11% 46%;

  --accent: 16 65% 47%;
  --accent-foreground: 0 0% 98%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;

  --border: 0 0% 90%;
  --input: 0 0% 94%;
  --ring: 16 65% 47%;

  --radius: 8px; /* 8pt grid system */

  /* Premium design tokens */
  --premium-copper: 16 65% 47%;
  --premium-copper-light: 16 65% 57%;
  --premium-copper-dark: 16 65% 37%;
  --warm-white: 0 0% 98%;
  --charcoal: 0 0% 11.8%;
  --slate: 203 11% 46%;
  --slate-light: 203 11% 56%;

  /* Gradients */
  --gradient-premium: linear-gradient(135deg, hsl(var(--premium-copper)) 0%, hsl(var(--premium-copper-dark)) 100%);
  --gradient-subtle: linear-gradient(180deg, hsl(var(--warm-white)) 0%, hsl(0 0% 96%) 100%);
  
  /* Shadows - Premium depth */
  --shadow-premium: 0 8px 32px -8px hsl(var(--premium-copper) / 0.2);
  --shadow-card: 0 4px 24px -4px hsl(0 0% 0% / 0.08);
  --shadow-button: 0 2px 8px -2px hsl(var(--premium-copper) / 0.3);
  
  /* Typography scale */
  --text-hero: 4.5rem; /* 72px */
  --text-h1: 3rem; /* 48px */
  --text-h2: 2rem; /* 32px */
  --text-body: 1.125rem; /* 18px */
  --text-small: 0.875rem; /* 14px */
  
  /* Spacing - 8pt grid */
  --space-unit: 8px;
  --space-xs: calc(var(--space-unit) * 1); /* 8px */
  --space-sm: calc(var(--space-unit) * 2); /* 16px */
  --space-md: calc(var(--space-unit) * 3); /* 24px */
  --space-lg: calc(var(--space-unit) * 6); /* 48px */
  --space-xl: calc(var(--space-unit) * 12); /* 96px */
  
  /* Transitions - Sub-200ms */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  border-color: hsl(var(--border));
}

body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography system */
.text-hero {
  font-size: var(--text-hero);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.text-h1 {
  font-size: var(--text-h1);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.text-h2 {
  font-size: var(--text-h2);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.text-body {
  font-size: var(--text-body);
  line-height: 1.6;
  font-weight: 400;
}

.text-small {
  font-size: var(--text-small);
  line-height: 1.5;
  font-weight: 400;
}

/* Premium button variants */
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: var(--text-body);
  font-weight: 500;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  background: var(--gradient-premium);
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-button);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-premium:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-premium);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: var(--text-body);
  font-weight: 500;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  border: 2px solid hsl(var(--premium-copper));
  color: hsl(var(--premium-copper));
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background: hsl(var(--premium-copper));
  color: hsl(var(--primary-foreground));
}

/* White outline variant for dark backgrounds (e.g. hero banner) */
.btn-secondary.btn-hero-outline {
  border-color: white;
  color: white;
}
.btn-secondary.btn-hero-outline:hover {
  background: white;
  color: hsl(var(--foreground));
}

/* Premium card styling */
.card-premium {
  border-radius: 8px;
  padding: 2rem;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  background: hsl(var(--card));
  box-shadow: var(--shadow-card);
}

.card-premium:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-premium);
}

/* Section spacing - 8pt grid */
.section-padding {
  padding: 6rem 1rem;
}

.container-max {
  max-width: 1280px;
  margin: 0 auto;
}

/* Color utilities */
.bg-background { background: hsl(var(--background)); }
.bg-charcoal { background: hsl(var(--charcoal)); }
.bg-muted { background: hsl(var(--muted)); }
.bg-gradient-subtle { background: var(--gradient-subtle); }

.text-charcoal { color: hsl(var(--charcoal)); }
.text-slate { color: hsl(var(--slate)); }
.text-premium-copper { color: hsl(var(--premium-copper)); }
.text-white { color: white; }

.border-border { border-color: hsl(var(--border)); }

/* Spacing utilities */
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

.mr-2 { margin-right: 0.5rem; }

.p-8 { padding: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }

/* Layout utilities */
.min-h-screen { min-height: 100vh; }
.min-h-\[80vh\] { min-height: 80vh; }

.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-flex { display: inline-flex; }

@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:hidden { display: none; }
}

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }

.inset-0 { inset: 0; }
.top-0 { top: 0; }
.bottom-8 { bottom: 2rem; }
.left-1\/2 { left: 50%; }

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.transform { transform: var(--tw-transform); }
.-translate-x-1\/2 { transform: translateX(-50%); }

/* Sizing */
.w-1 { width: 0.25rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-32 { width: 8rem; }
.w-full { width: 100%; }
.w-\[375px\] { width: 375px; }

.h-4 { height: 1rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-28 { height: 7rem; }
.h-32 { height: 8rem; }
.h-80 { height: 20rem; }
.h-96 { height: 24rem; }
.h-auto { height: auto; }
.h-full { height: 100%; }

.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }

/* Visual effects */
.rounded-lg { border-radius: 8px; }
.rounded-full { border-radius: 9999px; }

.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }

.shadow-card { box-shadow: var(--shadow-card); }

.backdrop-blur-sm { backdrop-filter: blur(4px); }

.object-cover { object-fit: cover; }

.overflow-hidden { overflow: hidden; }

.cursor-pointer { cursor: pointer; }

/* Text utilities */
.text-center { text-align: center; }
.text-lg { font-size: 1.125rem; }
.text-2xl { font-size: 1.5rem; }

.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.italic { font-style: italic; }

.mx-auto { margin-left: auto; margin-right: auto; }

/* Hover and transition effects */
.transition-colors { transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.duration-fast { transition-duration: 150ms; }

.hover\:text-premium-copper:hover { color: hsl(var(--premium-copper)); }
.hover\:bg-muted:hover { background: hsl(var(--muted)); }
.hover\:underline:hover { text-decoration: underline; }

/* Animation */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Hero video background styles */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-video-container iframe,
.hero-video-container video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Responsive utilities */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:col-span-2 { grid-column: span 2; }
  .md\:flex-row { flex-direction: row; }
  .md\:text-right { text-align: right; }
  .md\:ml-auto { margin-left: auto; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .lg\:col-span-2 { grid-column: span 2; }
  .lg\:p-12 { padding: 3rem; }
}

@media (max-width: 767px) {
  .sm\:flex-row { flex-direction: row; }
}

/* Opacity utilities */
.text-white\/90 { color: rgb(255 255 255 / 0.9); }
.text-white\/80 { color: rgb(255 255 255 / 0.8); }
.text-white\/70 { color: rgb(255 255 255 / 0.7); }
.text-white\/60 { color: rgb(255 255 255 / 0.6); }
.text-white\/50 { color: rgb(255 255 255 / 0.5); }
.text-white\/40 { color: rgb(255 255 255 / 0.4); }

.bg-charcoal\/60 { background-color: rgb(30 30 30 / 0.6); }
.bg-premium-copper\/10 { background-color: rgb(199 92 44 / 0.1); }
.bg-white\/95 { background-color: rgb(255 255 255 / 0.95); }
.bg-white\/20 { background-color: rgb(255 255 255 / 0.2); }

.border-white\/10 { border-color: rgb(255 255 255 / 0.1); }
.border-white\/20 { border-color: rgb(255 255 255 / 0.2); }

/* WordPress specific styles */
.wp-block-image {
  margin: 0;
}

.wp-block-image img {
  height: auto;
  max-width: 100%;
}

.alignwide {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}

.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}

/* Gutenberg block styles */
.wp-block-group {
  margin-bottom: 2rem;
}

.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.wp-block-column {
  flex: 1;
  min-width: 0;
}

@media (max-width: 767px) {
  .wp-block-columns {
    flex-direction: column;
  }
}

/* Testimonial Carousel Styles */
.testimonial-carousel {
  position: relative;
}

.testimonial-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.testimonial-slide.active {
  display: block;
  opacity: 1;
}

.testimonial-slide blockquote {
  margin: 0;
}

.testimonial-slide blockquote p {
  margin: 0;
}

.testimonial-navigation {
  margin-top: 2rem;
}

.testimonial-prev,
.testimonial-next {
  padding: 0.5rem 1rem;
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid hsl(var(--premium-copper));
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.testimonial-dot:hover {
  background: hsl(var(--premium-copper) / 0.3);
}

.testimonial-dot.active {
  background: hsl(var(--premium-copper));
}

/* Winn Featured Service Block Styles */
.winn-featured-service-block .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.winn-featured-service-block h3 {
  margin-top: 0;
}

@media (min-width: 1024px) {
  .winn-featured-service-block .grid.lg\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

/* Winn Page Header Section Block Styles */
/* Break out of max-w-4xl constraint to match nav bar width */
.winn-page-header-section-block {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.winn-page-header-section-block > section {
  width: 100%;
}

.winn-page-header-section-block .flex.flex-col {
  margin-top: 1.5rem;
}

/* Winn Text Cards Plus Image Block Styles */
.winn-text-cards-plus-image-block .card-premium h3 {
  margin-top: 0;
}

/* Winn FAQ Block Styles */
.winn-faq-block .card-premium h3 {
  margin-top: 0;
}
