/* Valentim Plumbing Theme Engine */
/* Applies after the main Plumbing Pro CSS and translation CSS. */

/* Default: Trust Pro */
:root,
html[data-vp-theme="trust-pro"] {
  --vp-primary: #0b2533;
  --vp-primary-2: #123846;
  --vp-accent: #d9781f;
  --vp-accent-2: #e89033;
  --vp-surface: #ffffff;
  --vp-bg: #f6f8f7;
  --vp-soft: #eef5f6;
  --vp-text: #0b2533;
  --vp-muted: #607179;
  --vp-line: rgba(11, 37, 51, .12);
  --vp-shadow: 0 22px 60px rgba(11, 37, 51, .13);
  --vp-hero-overlay: linear-gradient(90deg, rgba(11,37,51,.88), rgba(11,37,51,.68), rgba(11,37,51,.35));
}

/* Modern Clean: lighter, more premium residential */
html[data-vp-theme="modern-clean"] {
  --vp-primary: #154f5d;
  --vp-primary-2: #1d6877;
  --vp-accent: #c9752a;
  --vp-accent-2: #dc8a3e;
  --vp-surface: #ffffff;
  --vp-bg: #f7faf9;
  --vp-soft: #eaf4f2;
  --vp-text: #0d2f38;
  --vp-muted: #607377;
  --vp-line: rgba(21, 79, 93, .13);
  --vp-shadow: 0 20px 52px rgba(21, 79, 93, .11);
  --vp-hero-overlay: linear-gradient(90deg, rgba(13,47,56,.82), rgba(21,79,93,.58), rgba(21,79,93,.24));
}

/* Emergency Pro: stronger CTA and emergency positioning */
html[data-vp-theme="emergency-pro"] {
  --vp-primary: #071629;
  --vp-primary-2: #0b3f6f;
  --vp-accent: #ff7a00;
  --vp-accent-2: #ff9a1f;
  --vp-surface: #ffffff;
  --vp-bg: #f4f7fb;
  --vp-soft: #edf4fb;
  --vp-text: #071629;
  --vp-muted: #5e6b7b;
  --vp-line: rgba(7, 22, 41, .13);
  --vp-shadow: 0 24px 70px rgba(7, 22, 41, .16);
  --vp-hero-overlay: linear-gradient(90deg, rgba(6,22,41,.90), rgba(6,22,41,.66), rgba(6,22,41,.30));
}

/* Premium Dark: polished contractor / higher-end feel */
html[data-vp-theme="premium-dark"] {
  --vp-primary: #08141d;
  --vp-primary-2: #102a38;
  --vp-accent: #c9893b;
  --vp-accent-2: #dca357;
  --vp-surface: #ffffff;
  --vp-bg: #f4f2ee;
  --vp-soft: #ece9e2;
  --vp-text: #08141d;
  --vp-muted: #635f58;
  --vp-line: rgba(8, 20, 29, .13);
  --vp-shadow: 0 26px 76px rgba(8, 20, 29, .18);
  --vp-hero-overlay: linear-gradient(90deg, rgba(8,20,29,.92), rgba(8,20,29,.72), rgba(8,20,29,.32));
}

/* Map existing variables used by the installed Plumbing Pro page */
:root,
html[data-vp-theme] {
  --navy: var(--vp-primary) !important;
  --navy-2: var(--vp-primary-2) !important;
  --blue: var(--vp-primary-2) !important;
  --blue-2: var(--vp-primary-2) !important;
  --orange: var(--vp-accent) !important;
  --orange-2: var(--vp-accent-2) !important;
  --green: var(--vp-primary-2) !important;
  --bg: var(--vp-bg) !important;
  --card: var(--vp-surface) !important;
  --ink: var(--vp-text) !important;
  --muted: var(--vp-muted) !important;
  --line: var(--vp-line) !important;
  --shadow: var(--vp-shadow) !important;
}

body {
  background: var(--vp-bg) !important;
  color: var(--vp-text) !important;
}

/* Top and header */
.top-strip {
  background: var(--vp-primary) !important;
  color: #fff !important;
}

.logo-row {
  background: rgba(255,255,255,.98) !important;
  border-bottom: 1px solid var(--vp-line) !important;
}

.logo-mark,
.logo-text strong,
.logo-text span {
  color: var(--vp-primary-2) !important;
}

.contact-mini i {
  background: var(--vp-soft) !important;
  color: var(--vp-primary-2) !important;
}

.contact-mini strong {
  color: var(--vp-text) !important;
}

.contact-mini span {
  color: var(--vp-muted) !important;
}

/* Navigation */
.main-nav {
  background: var(--vp-primary-2) !important;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(0,0,0,.16) !important;
}

.langs span {
  cursor: pointer !important;
  background: rgba(255,255,255,.16) !important;
}

.langs span.active {
  background: #fff !important;
  color: var(--vp-primary-2) !important;
}

/* Buttons */
.btn {
  background: var(--vp-accent) !important;
  color: #fff !important;
  border-radius: 10px !important;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--vp-accent) 28%, transparent) !important;
}

.btn:hover {
  background: var(--vp-accent-2) !important;
}

.btn-blue {
  background: var(--vp-primary-2) !important;
}

.btn-white {
  background: #fff !important;
  color: var(--vp-primary-2) !important;
  border: 1px solid rgba(255,255,255,.6) !important;
}

/* Hero */
.hero {
  background:
    var(--vp-hero-overlay),
    url("../img/hero.jpg") center center / cover no-repeat,
    url("../img/hero-real-plumbing-v817.jpg") center center / cover no-repeat !important;
}

.hero::after {
  background:
    radial-gradient(circle at 72% 18%, color-mix(in srgb, var(--vp-accent) 18%, transparent), transparent 28%),
    linear-gradient(180deg, rgba(0,0,0,0) 55%, color-mix(in srgb, var(--vp-primary) 70%, transparent) 100%) !important;
}

.hero-kicker {
  border-color: var(--vp-accent) !important;
  background: color-mix(in srgb, var(--vp-accent) 15%, transparent) !important;
}

.emergency-card {
  border-radius: 16px !important;
  overflow: hidden !important;
  background: var(--vp-surface) !important;
}

.emergency-card .card-head {
  background: var(--vp-accent) !important;
}

.call-box {
  background: var(--vp-soft) !important;
}

/* Sections/cards */
.services,
.area,
.contact,
.gallery {
  background: var(--vp-bg) !important;
}

.section h2,
.service-card h3,
.contact-card strong,
.emergency-card h2 {
  color: var(--vp-text) !important;
}

.eyebrow,
.proof-item strong,
.gallery-card b {
  color: var(--vp-accent) !important;
}

.service-card,
.contact-card,
.emergency-card {
  border: 1px solid var(--vp-line) !important;
  box-shadow: var(--vp-shadow) !important;
}

.service-card,
.gallery-card,
.contact-card {
  border-radius: 16px !important;
}

.service-card img,
.gallery-card {
  filter: saturate(.92) contrast(1.03) !important;
}

.proof {
  background: var(--vp-primary) !important;
}

.area-list span {
  background: var(--vp-soft) !important;
  color: var(--vp-text) !important;
  border: 1px solid var(--vp-line) !important;
  border-radius: 10px !important;
}

/* CTA/footer */
.cta {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--vp-primary) 94%, transparent), color-mix(in srgb, var(--vp-primary-2) 78%, transparent)),
    url("../img/water-heater.jpg") center/cover no-repeat !important;
}

.footer {
  background: var(--vp-primary) !important;
}

/* Theme admin shortcut banner only if enabled by JS */
.vp-theme-preview-bar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  background: var(--vp-primary);
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--vp-shadow);
}

.vp-theme-preview-bar a {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 720px) {
  .btn {
    border-radius: 10px !important;
  }
}
