/**
 * 1800 Doorbell - Global Core Styles
 * 
 * Site-wide CSS that loads on every page
 * Contains: Variables, resets, typography, base styles, animations
 * 
 * Consolidated from Code Snippets "Global CSS - Core" section
 * 
 * @package 1800doorbell
 * @version 2.0.11
 * @updated December 18, 2025
 */
 
	/**
	 * Prevent layout shifts by reserving space for dynamic elements
	 */

	.cusrev-reviews-container,
	.customer-reviews-woocommerce {
		min-height: 300px;
	}

	.cross-sell-products,
	.related-products {
		min-height: 400px;
	}

	.woocommerce-product-gallery__wrapper {
		min-height: 500px;
	}

	/* Ensure fixed positioning for popups */
	#beacon-container,
	.helpscout-beacon {
		position: fixed !important;
		bottom: 20px;
		right: 20px;
	}

	/* Product images - Use aspect ratio */
	.woocommerce-product-gallery__image {
		aspect-ratio: 1 / 1;
		width: 100%;
	}

	/* Skeleton loader for images (optional but recommended) */
	img[loading="lazy"]:not(.loaded) {
		background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
		background-size: 200% 100%;
		animation: loading 1.5s infinite;
	}

	@keyframes loading {
		0% { background-position: 200% 0; }
		100% { background-position: -200% 0; }
	}
	
/* ===============================================
   CSS VARIABLES - Global Design Tokens
   =============================================== */

:root {
  /* Brand Colors */
  --primary-color: #14365D;
  --secondary-color: #E85D04;
  --primary-hover: #0f2a47;
  --secondary-hover: #d64000;
  
  /* Neutrals */
  --border-color: #dddddd;
  --border-light: #eeeeee;
  --text-color: #333333;
  --text-muted: #666666;
  --text-light: #999999;
  --bg-light: #f8f9fa;
  --bg-lighter: #fafbfc;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.15);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  
  /* Layout */
  --max-width: 1200px;
  --border-radius: 0.5rem;
  --border-radius-sm: 0.25rem;
  --border-radius-lg: 0.75rem;
  
  /* Transitions */
  --transition-fast: 0.15s;
  --transition-base: 0.3s;
  --transition-slow: 0.5s;
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Typography */
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ===============================================
   BASE RESETS
   =============================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  font-display: swap;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  color: var(--text-color);
  margin: 0;
}

/* ===============================================
   TYPOGRAPHY
   =============================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  font-display: swap;
  line-height: 1.2;
  margin: 0 0 var(--space-sm);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.375rem); }

p {
  margin: 0 0 var(--space-sm);
  line-height: 1.6;
}

strong {
  font-weight: 600;
  color: var(--primary-color);
}

/* ===============================================
   LINKS
   =============================================== */

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-base) ease;
}

a:hover {
  color: var(--secondary-color);
}

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

/* ===============================================
   IMAGES & MEDIA
   =============================================== */

img {
  max-width: 100%;
  height: auto;
  display: block;
  aspect-ratio: attr(width) / attr(height);
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity var(--transition-base) ease-in-out;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([data-ll-status="loading"]) {
  opacity: 1;
}

/* ===============================================
   FORMS - Base Input Styles
   =============================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-base) ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.1);
}

/* ===============================================
   BUTTONS - Base Styles
   Extended in components-library.css
   =============================================== */

button,
.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--transition-base) ease;
  text-decoration: none;
}

/* ===============================================
   NAVIGATION
   =============================================== */

.primary-navigation .primary-menu-container > ul > li.menu-item > a,
.secondary-navigation .secondary-menu-container > ul > li.menu-item > a {
  color: var(--primary-color);
  transition: color var(--transition-base) ease;
}

.primary-navigation .primary-menu-container > ul > li.menu-item > a:hover,
.secondary-navigation .secondary-menu-container > ul > li.menu-item > a:hover {
  color: var(--primary-hover);
}

.primary-navigation .current-menu-item > a,
.secondary-navigation .current-menu-item > a {
  color: var(--secondary-color);
}

/* FAQ Button in Top Bar */
.top-menu a.faq-pulse-button,
.faq-pulse-button {
  background: linear-gradient(135deg, var(--secondary-color), #C74A03) !important;
  color: white !important;
  padding: 5px 15px !important;
  border-radius: 20px;
  animation: subtlePulse 3s infinite;
}

.faq-pulse-button:hover {
  background: linear-gradient(135deg, #F06204, #D65203) !important;
}

/* ===============================================
   BREADCRUMBS
   =============================================== */

#kadence-breadcrumbs {
  width: 100%;
  max-width: 100%;
  padding: 0 var(--space-sm);
}

.kadence-breadcrumbs {
  font-size: 1em;
  font-weight: bold;
}

.kadence-breadcrumb-container,
.kadence-breadcrumb-container a {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.kadence-breadcrumb-container a {
  color: var(--primary-color);
}

.kadence-breadcrumb-container a:hover {
  color: var(--secondary-color);
}

.kadence-bread-current {
  font-weight: bold;
}

.kadence-bc-home svg {
  width: 1em;
  height: 1em;
  vertical-align: middle;
  fill: currentColor;
}

.bc-delimiter {
  margin: 0 5px;
}

.kadence-bc-home:hover {
  opacity: 0.8;
}

/* ===============================================
   WOOCOMMERCE CORE
   =============================================== */

.woocommerce-Price-amount {
  color: var(--primary-color);
  font-weight: 600;
}

.woocommerce-Price-amount ins {
  color: var(--secondary-color);
  text-decoration: none;
}

.onsale,
.woocommerce span.onsale {
  background-color: var(--secondary-color) !important;
  color: white !important;
  border-radius: var(--border-radius-sm);
  padding: 0.25rem 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
}

/* ===============================================
   UTILITY CLASSES
   =============================================== */

.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;
}

.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-muted { color: var(--text-muted) !important; }

.bg-light { background-color: var(--bg-light) !important; }
.bg-white { background-color: white !important; }

/* ===============================================
   TABLES
   =============================================== */

.table thead th {
  vertical-align: bottom;
  border-bottom: 0.125rem solid #dee2e6;
}

.table td,
.table th {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 0.0625rem solid #dee2e6;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, .01);
}

/* ===============================================
   ANIMATIONS
   =============================================== */

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

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes subtlePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(232, 93, 4, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(232, 93, 4, 0);
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ===============================================
   MISCELLANEOUS
   =============================================== */

.menu-item-bold > a {
  font-weight: bold;
}

.kb-gallery-figure {
  border: 0.0625rem solid #eeeeee;
  border-radius: 0.375rem;
  box-sizing: border-box;
}

/* ===============================================
   ACCESSIBILITY
   =============================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===============================================
   RESPONSIVE BREAKPOINTS
   =============================================== */

@media (max-width: 767px) {
  :root {
    --space-lg: 1.5rem;
    --space-xl: 2rem;
  }
  
  .header-search-bar .aws-container {
    width: 100%;
  }
  
  .header-search-bar .aws-search-field {
    font-size: 16px;
    padding: 10px;
  }
}

/* Responsive Table Styles - Small Screens */
@media only screen and (max-width: 35rem) {
  .table.table-striped {
    font-size: 0.875rem;
  }
  
  .table-striped thead th {
    padding: 0.3125rem;
  }
  
  .table-striped td,
  .table-striped th {
    padding: 0 0.125rem;
  }
}

@media only screen and (max-width: 23.75rem) {
  .table.table-striped {
    font-size: 0.6875rem;
  }
  
  .table-striped thead th {
    padding: 0.3125rem;
    font-size: 0.6875rem;
  }
  
  .table-striped td,
  .table-striped th {
    padding: 0;
  }
}