/*
Theme Name:   WaterQualitySD
Theme URI:    https://wqo.info
Description:  Custom child theme for WaterQualitySD — San Diego water treatment landing page. Built on Hello Elementor.
Author:       WaterQualitySD
Author URI:   https://wqo.info
Template:     hello-elementor
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  waterqualitysd
Tags:         elementor, landing-page, water-treatment
*/

/* ─── CSS Custom Properties — WaterQualitySD Design System (Light) ─── */
:root {
  /* Brand */
  --wq-primary:       #0B3C5D;
  --wq-primary-light: #0F4A72;
  --wq-secondary:     #6BB8D9;
  --wq-cta:           #BF5700;
  --wq-cta-hover:     #A34A00;
  --wq-cta-text:      #D35F00;
  --wq-success:       #22C55E;

  /* Surfaces */
  --wq-bg:            #FFFFFF;
  --wq-surface:       #F8FAFC;
  --wq-surface-med:   #F1F5F9;

  /* Text */
  --wq-foreground:    #1E293B;
  --wq-muted:         #556170;

  /* Borders */
  --wq-border:        #E2E8F0;
  --wq-destructive:   #EF4444;

  /* Radius */
  --wq-radius:        8px;     /* base — rounded-lg */
  --wq-radius-sm:     6px;     /* rounded-md — buttons */
  --wq-radius-xl:     12px;    /* rounded-xl — cards */
  --wq-radius-2xl:    16px;    /* rounded-2xl — large cards */
  --wq-radius-3xl:    24px;    /* rounded-3xl — offer box */
  --wq-radius-full:   9999px;  /* badges */
}

/* ─── Base Reset ─── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--wq-bg);
  color: var(--wq-foreground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.25;
  color: var(--wq-primary);
  letter-spacing: -0.025em;
}

p {
  line-height: 1.625;
  color: rgba(30, 41, 59, 0.8);
}

/* ─── Links ─── */
a {
  color: var(--wq-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--wq-cta);
}

/* ─── Elementor Overrides ─── */
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1152px;
}

#page,
.elementor,
.site-main {
  position: relative;
  z-index: 1;
}

/* ─── Section backgrounds ─── */
.wqo-section-white {
  background-color: var(--wq-bg) !important;
}

.wqo-section-light {
  background-color: var(--wq-surface) !important;
}

.wqo-section-dark {
  background-color: var(--wq-primary) !important;
}

.wqo-section-dark h1,
.wqo-section-dark h2,
.wqo-section-dark h3,
.wqo-section-dark p,
.wqo-section-dark .elementor-heading-title,
.wqo-section-dark .elementor-widget-text-editor p {
  color: #FFFFFF !important;
}

.wqo-section-dark .elementor-widget-text-editor p {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* ─── Section label (uppercase) ─── */
.wqo-section-label .elementor-heading-title {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--wq-muted) !important;
}

/* ─── Trust badge (hero) ─── */
.wqo-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(107, 184, 217, 0.1);
  border: 1px solid rgba(107, 184, 217, 0.3);
  border-radius: var(--wq-radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wq-primary);
}

/* ─── CTA Button ─── */
.wqo-btn-cta,
.wqo-btn-cta .elementor-button,
.elementor-widget-button .wqo-btn-cta .elementor-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  min-height: 56px;
  padding: 10px 24px !important;
  background-color: var(--wq-cta) !important;
  background-image: none !important;
  color: #FFFFFF !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  border: none !important;
  border-radius: var(--wq-radius-sm) !important;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 10px 15px -3px rgba(191, 87, 0, 0.25) !important;
}

.wqo-btn-cta:hover,
.wqo-btn-cta .elementor-button:hover {
  background-color: var(--wq-cta-hover) !important;
  box-shadow: 0 20px 25px -5px rgba(191, 87, 0, 0.3) !important;
}

.wqo-btn-cta .elementor-button-text {
  color: #FFFFFF !important;
}

/* CTA in dark sections */
.wqo-section-dark .wqo-btn-cta .elementor-button,
.wqo-section-dark .wqo-btn-cta {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2) !important;
}

/* Outline / secondary button */
.wqo-btn-outline .elementor-button,
.wqo-btn-outline a.elementor-button {
  background-color: transparent !important;
  background-image: none !important;
  border: 1.5px solid var(--wq-border) !important;
  color: var(--wq-primary) !important;
  min-height: 56px;
  padding: 10px 24px !important;
  border-radius: var(--wq-radius-sm) !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
}

.wqo-btn-outline .elementor-button-text {
  color: var(--wq-primary) !important;
}

.wqo-btn-outline .elementor-button:hover,
.wqo-btn-outline a.elementor-button:hover {
  background-color: var(--wq-surface) !important;
  border-color: var(--wq-primary) !important;
}

/* ─── Hero equal-width buttons ─── */
.wqo-hero-btns > .elementor-element,
.wqo-hero-btns > .e-con > .elementor-element,
.wqo-hero-btns > .elementor-widget-button {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: 50%;
}

.wqo-btn-equal,
.wqo-btn-equal .elementor-widget-container,
.wqo-btn-equal .elementor-button-wrapper {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
}

.wqo-btn-equal .elementor-button,
.wqo-btn-equal a.elementor-button {
  width: 100% !important;
  height: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.wqo-btn-equal .elementor-button-content-wrapper {
  justify-content: center !important;
  width: 100%;
}

.wqo-btn-equal .elementor-button-text {
  text-align: center !important;
}

@media (max-width: 767px) {
  .wqo-hero-btns > .elementor-element,
  .wqo-hero-btns > .elementor-widget-button {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* ─── Elementor button font override ─── */
.elementor-widget-button .elementor-button {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 600 !important;
}

/* ─── Cards ─── */
.wqo-card {
  background: var(--wq-bg);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: var(--wq-radius-xl);
  padding: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.wqo-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Card with highlight (featured) */
.wqo-card-featured {
  border: 2px solid var(--wq-cta);
  box-shadow: 0 20px 25px -5px rgba(191, 87, 0, 0.1);
  border-radius: var(--wq-radius-2xl);
}

/* Large card (2xl radius) */
.wqo-card-lg {
  border-radius: var(--wq-radius-2xl);
  padding: 24px;
}

/* Offer / dark CTA box */
.wqo-offer-box {
  background: var(--wq-primary) !important;
  border: 2px solid rgba(11, 60, 93, 0.2);
  border-radius: var(--wq-radius-3xl) !important;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(11, 60, 93, 0.2);
}

.wqo-offer-box h2,
.wqo-offer-box h3,
.wqo-offer-box p,
.wqo-offer-box .elementor-heading-title,
.wqo-offer-box .elementor-widget-text-editor p {
  color: #FFFFFF !important;
}

.wqo-offer-box .elementor-widget-text-editor p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* ─── Callout box (quote / left-border card) ─── */
.wqo-callout {
  border-radius: var(--wq-radius-xl);
  border-left: 4px solid var(--wq-cta);
  background: var(--wq-bg);
  padding: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Authority empowerment callout */
.wqo-callout-accent {
  border: 2px solid rgba(191, 87, 0, 0.3);
  background: rgba(191, 87, 0, 0.04);
  border-radius: var(--wq-radius-2xl);
  padding: 24px;
}

.wqo-callout-accent .elementor-heading-title {
  color: var(--wq-cta-text) !important;
  font-weight: 700 !important;
}

/* ─── Icon circle ─── */
.wqo-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--wq-radius-full);
  background: rgba(107, 184, 217, 0.2);
  flex-shrink: 0;
}

.wqo-icon-circle-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--wq-radius-xl);
}

.wqo-icon-circle-cta {
  background: rgba(255, 122, 0, 0.15);
}

/* Number step circles */
.wqo-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--wq-radius-full);
  background: var(--wq-primary);
  color: #FFFFFF;
  font-size: 1.125rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Success check circle (offer bullets) */
.wqo-check-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--wq-radius-full);
  background: var(--wq-success);
  flex-shrink: 0;
}

/* ─── Badge (inline pill) ─── */
.wqo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--wq-radius-full);
  font-size: 0.875rem;
  font-weight: 500;
}

.wqo-badge-light {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.wqo-badge-key {
  background: var(--wq-cta);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
}

/* ─── "Key Component" featured badge (absolute positioned) ─── */
.wqo-featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* ─── Authority large values ─── */
.wqo-big-value .elementor-heading-title {
  font-size: 2.25rem !important;
  font-weight: 700 !important;
  color: var(--wq-primary) !important;
}

/* ─── Success box (mechanism bottom) ─── */
.wqo-success-box {
  border-radius: var(--wq-radius);
  background: rgba(34, 197, 94, 0.1);
  padding: 16px;
  text-align: center;
}

.wqo-success-box p,
.wqo-success-box .elementor-heading-title {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--wq-primary) !important;
}

/* ─── Trust strip ─── */
.wqo-trust-strip {
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  background: var(--wq-surface) !important;
}

/* ─── Micro trust (under CTA) ─── */
.wqo-micro-trust {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--wq-muted);
}

/* ─── FAQ Accordion ─── */
.wqo-faq .elementor-accordion-item {
  border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
  border: none !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
}

.wqo-faq .elementor-tab-title {
  padding: 20px 0 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--wq-primary) !important;
}

.wqo-faq .elementor-tab-title:hover,
.wqo-faq .elementor-tab-title.elementor-active {
  color: var(--wq-cta) !important;
}

.wqo-faq .elementor-tab-content {
  padding: 0 0 20px !important;
  font-size: 1rem !important;
  line-height: 1.625 !important;
  color: rgba(30, 41, 59, 0.8) !important;
}

.wqo-faq .elementor-accordion-icon {
  color: var(--wq-muted) !important;
}

/* ─── Forms ─── */
.wqo-lead-form label,
.wqo-cta-form label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wq-foreground);
  margin-bottom: 4px;
}

.wqo-lead-form input,
.wqo-lead-form select,
.wqo-cta-form input,
.wqo-cta-form select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--wq-border);
  border-radius: var(--wq-radius-sm);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  color: var(--wq-foreground);
  background: var(--wq-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wqo-lead-form input:focus,
.wqo-lead-form select:focus,
.wqo-cta-form input:focus,
.wqo-cta-form select:focus {
  outline: none;
  border-color: var(--wq-primary);
  box-shadow: 0 0 0 3px rgba(11, 60, 93, 0.1);
}

.wqo-form-submit {
  width: 100%;
  height: 56px;
  background: var(--wq-cta) !important;
  color: #FFFFFF !important;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600 !important;
  font-size: 1rem;
  border: none;
  border-radius: var(--wq-radius-sm);
  cursor: pointer;
  transition: background-color 0.2s ease;
  box-shadow: 0 10px 15px -3px rgba(255, 122, 0, 0.25);
}

.wqo-form-submit:hover {
  background: var(--wq-cta-hover) !important;
}

/* ─── CTA text accent (orange highlight in headings) ─── */
.wqo-text-cta,
.elementor-widget-heading h1 span.wqo-text-cta,
.elementor-widget-heading h2 span.wqo-text-cta {
  color: var(--wq-cta) !important;
}

/* ─── Hero image ─── */
.wqo-hero-img {
  border-radius: var(--wq-radius-2xl);
  box-shadow: 0 25px 50px -12px rgba(11, 60, 93, 0.1);
  overflow: hidden;
}

.wqo-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero image overlay badge */
.wqo-hero-overlay-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: var(--wq-radius-xl);
  padding: 16px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ─── Sticky mobile CTA ─── */
.wqo-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 16px;
}

/* ─── Diagram (mechanism) ─── */
.wqo-diagram {
  border: 1px solid rgba(226, 232, 240, 0.6);
  background: var(--wq-surface);
  border-radius: var(--wq-radius-2xl);
  padding: 24px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.wqo-diagram-item {
  border: 1px solid var(--wq-border);
  background: var(--wq-bg);
  border-radius: var(--wq-radius-xl);
  padding: 16px;
}

.wqo-diagram-item-featured {
  border-color: var(--wq-cta);
  background: rgba(255, 122, 0, 0.05);
}

/* ─── Fade-up animation ─── */
.wq-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.wq-fade-up.wq-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Check / success icons (inline) ─── */
.wqo-check-icon {
  color: var(--wq-success);
  flex-shrink: 0;
}

.wqo-icon-primary {
  color: var(--wq-primary);
}

/* ─── Elementor icon-list overrides ─── */
.elementor-icon-list-text {
  color: var(--wq-foreground) !important;
}

.wqo-section-dark .elementor-icon-list-text {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* ─── Topbar ─── */
.wqo-topbar {
  background: var(--wq-bg) !important;
  border-bottom: 1px solid var(--wq-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.wqo-topbar .elementor-heading-title {
  color: var(--wq-primary) !important;
  font-weight: 700 !important;
}

/* Topbar logo — inline with CTA button */
.wqo-topbar-logo,
.wqo-topbar-logo .elementor-widget-container {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1;
}

.wqo-logo-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}

.wqo-logo-img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

.wqo-logo-text span {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--wq-primary);
}

.wqo-logo-text svg {
  flex-shrink: 0;
}

.wqo-topbar a[href^="tel"] {
  color: var(--wq-primary) !important;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 4px;
}

/* ─── Footer ─── */
.wqo-footer {
  border-top: 1px solid var(--wq-border);
}

.wqo-footer .elementor-widget-text-editor p {
  color: var(--wq-muted) !important;
  font-size: 0.875rem !important;
}

.wqo-footer a[href^="tel"] {
  color: var(--wq-primary) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Accessibility ─── */
.wqo-skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 12px 24px;
  background: var(--wq-primary);
  color: #FFFFFF;
  border-radius: var(--wq-radius-sm);
  font-weight: 600;
  z-index: 100000;
  transition: top 0.2s;
}

.wqo-skip-link:focus {
  top: 16px;
}

*:focus-visible {
  outline: 2px solid var(--wq-primary);
  outline-offset: 2px;
}

/* ─── Print ─── */
@media print {
  .wqo-topbar,
  .wqo-sticky-cta {
    display: none !important;
  }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.e-con a[href^="tel"]:not(.elementor-button) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Select elements - jasna border za focus state (accessibility) */
.wqo-lead-form select:focus,
.wqo-cta-form select:focus {
  border-color: #22d3ee !important;
  outline: 2px solid rgba(34, 211, 238, 0.4);
  outline-offset: 2px;
}

/* Skip to content link za keyboard navigaciju */
.wqo-skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #0891b2;
  color: #f0f9ff;
  padding: 8px 16px;
  z-index: 10000;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  transition: top 0.2s;
}
.wqo-skip-link:focus {
  top: 0;
}

/* ─── Responsive ─── */
@media (max-width: 767px) {
  body {
    font-size: 15px;
  }
}
