/* ProCare Appliance & Refrigeration — shared marketing site styles */

:root {
  --pc-navy: #0a2540;
  --pc-navy-deep: #061629;
  --pc-red: #dc2626;
  --pc-red-deep: #b91c1c;
  --pc-orange: #f59e0b;
  --pc-blue-accent: #2563eb;
  --pc-cool: #e8f1fa;
  --pc-bg: #f8fafc;
  --pc-text: #0f172a;
  --pc-muted: #64748b;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--pc-text); background: var(--pc-bg); }

/* Brand logo — transparent PNG, scales to fit container */
.brand-logo {
  background-image: url('../img/procare-logo.png');
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

/* Hero (used on secondary pages — about, services, etc.) */
.hero-bg {
  background: linear-gradient(135deg, #0a2540 0%, #061629 60%, #1e3a5f 100%);
  position: relative;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(220,38,38,0.18) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(37,99,235,0.20) 0%, transparent 45%);
  pointer-events: none;
}
.hero-bg > * { position: relative; z-index: 1; }

/* ================================================================
   HERO SPLIT (homepage) — text panel left + kitchen photo right
   ----------------------------------------------------------------
   To use a real photo: drop your image at assets/img/kitchen.jpg
   then UNCOMMENT the `background-image` line in `.hero-photo` below.
   The CSS-only gradient is the fallback if the image is missing.
   Recommended photo: bright luxury kitchen, premium appliances
   (Sub-Zero, Wolf, Viking visible), at least 1600x1200, JPEG.
   Free sources: unsplash.com (search "luxury kitchen", "modern
   kitchen", "stainless range"). Free for commercial use.
   ================================================================ */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: 560px;
  background: var(--pc-navy);
}
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
}
.hero-split .hero-text {
  padding: 4rem 3rem 4rem clamp(1.5rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #0a2540 0%, #061629 70%, #0a2540 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-split .hero-text::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(220,38,38,0.18) 0%, transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(245,158,11,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.hero-split .hero-text > * { position: relative; z-index: 1; }
.hero-split .hero-photo {
  background-color: #1e2e4a;
  background-image:
    /* CSS placeholder so the panel still looks premium without a real photo. */
    linear-gradient(135deg, rgba(10,37,64,0.55), rgba(6,22,41,0.20)),
    radial-gradient(ellipse at 30% 30%, rgba(245,158,11,0.30), transparent 55%),
    radial-gradient(ellipse at 70% 70%, rgba(37,99,235,0.35), transparent 60%),
    linear-gradient(160deg, #2a3f5f 0%, #1e2e4a 50%, #0f1c2e 100%);
  background-image: url('../img/kitchen.jpg'); /* real photo: tech servicing a fridge */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 320px;
  position: relative;
}
/* Subtle left-edge fade so the photo flows seamlessly into the dark text panel.
   The kitchen.jpg already has its own navy blend baked in, so this is light. */
.hero-split .hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,22,41,0.20) 0%, rgba(6,22,41,0) 12%);
  pointer-events: none;
}

/* Trust strip below hero (matches the dark-bar trust strip in the mockup) */
.trust-strip {
  background: var(--pc-navy);
  color: #cbd5e1;
  padding: .85rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.trust-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  font-size: .85rem;
  font-weight: 600;
}
.trust-strip-inner > span {
  padding: .25rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.15);
  display: inline-flex; align-items: center; gap: .35rem;
}
.trust-strip-inner > span:last-child { border-right: none; }
@media (max-width: 600px) {
  .trust-strip-inner > span { border-right: none; padding: .15rem .8rem; }
}
.trust-strip .stars { color: #fbbf24; letter-spacing: 1px; }

/* Old `.hero-image` style — kept for backward compat in case anything still uses it */
.hero-image {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  display: flex;
  align-items: center;
  background-color: #061629;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* CSS-only "premium dark kitchen" backdrop — rich navy with copper-warm accents
   that suggest the warm tones of a luxury appliance. Acts as fallback when no
   photo is dropped in, and shows through as a tint when one is. */
.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(220, 38, 38, 0.25) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 30%, rgba(245, 158, 11, 0.22) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(37, 99, 235, 0.30) 0%, transparent 55%),
    linear-gradient(135deg, #0a2540 0%, #061629 50%, #1a2e4a 100%);
  pointer-events: none;
}
/* Dark vignette overlay so text stays readable on top of any photo */
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 22, 41, 0.55) 0%, rgba(6, 22, 41, 0.35) 40%, rgba(6, 22, 41, 0.85) 100%);
  pointer-events: none;
}
.hero-image > * { position: relative; z-index: 2; }

/* Subtle SVG kitchen-pattern accent (looks like faint blueprint lines) */
.hero-image .hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  z-index: 1;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.4) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.4) 0 1px, transparent 1px 80px);
  pointer-events: none;
}

/* Big logo card centered in the hero (kept for backward compat) */
.hero-logo-card {
  display: inline-block;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.1);
}
.hero-logo-card .brand-logo {
  width: 280px;
  height: 226px; /* aspect 1.24 to fit logo without whitespace */
}
@media (max-width: 640px) {
  .hero-logo-card { padding: 1rem 1.25rem; }
  .hero-logo-card .brand-logo { width: 200px; height: 161px; }
}

/* Hero text styling */
.hero-eyebrow {
  display: inline-block;
  background: var(--pc-red);
  color: #fff;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: .45rem 1rem;
  border-radius: 99px;
  box-shadow: 0 8px 24px -8px rgba(220,38,38,0.7);
}
.hero-headline {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.hero-sub {
  text-shadow: 0 1px 14px rgba(0,0,0,0.5);
}

/* Pulsing call-to-action ring */
.pulse-ring {
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6);
  animation: pcPulse 2s infinite;
}
@keyframes pcPulse {
  0% { box-shadow: 0 0 0 0 rgba(220,38,38,0.6); }
  70% { box-shadow: 0 0 0 18px rgba(220,38,38,0); }
  100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}

/* Service / value cards */
.pc-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -10px rgba(10,37,64,0.18);
  border-color: #c7d2dc;
}

/* Brand wall */
.brand-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.02em;
  transition: all .15s ease;
}
.brand-tile:hover { border-color: var(--pc-red); color: var(--pc-navy); transform: translateY(-2px); }

/* FAQ */
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  color: var(--pc-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--pc-red);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: '−'; transform: rotate(0deg); }
.faq-item .faq-body { padding: 0 1.25rem 1.25rem; color: var(--pc-muted); line-height: 1.6; }

/* Mobile bottom action dock (steal from 911appliance) */
.mobile-dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  display: none;
  z-index: 60;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.06);
}
.mobile-dock a {
  flex: 1;
  text-align: center;
  padding: .65rem .25rem;
  color: var(--pc-navy);
  font-size: .7rem;
  font-weight: 600;
  text-decoration: none;
}
.mobile-dock a i { display: block; font-size: 1.15rem; margin-bottom: .15rem; color: var(--pc-red); }
@media (max-width: 768px) {
  .mobile-dock { display: flex; }
  body { padding-bottom: 64px; }
}

/* Form */
.pc-input {
  display: block;
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font-size: .95rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pc-input:focus { outline: none; border-color: var(--pc-red); box-shadow: 0 0 0 3px rgba(220,38,38,0.15); }
.pc-label { font-size: .8rem; font-weight: 600; color: #334155; margin-bottom: .35rem; display: block; }

/* Step process */
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--pc-red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 16px -6px rgba(220,38,38,0.5);
}

/* Trust ribbon */
.trust-ribbon {
  background: linear-gradient(90deg, #f8fafc 0%, #fff 50%, #f8fafc 100%);
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

/* Section header */
.section-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: .8rem;
  color: var(--pc-red);
  margin-bottom: .6rem;
}

/* Footer logo — transparent PNG on white card. Aspect matches logo (1.24:1). */
.footer-logo {
  width: 200px;
  height: 161px;
  background-image: url('../img/procare-logo.png');
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #fff;
  border-radius: 10px;
  padding: 10px;
}

/* Hero showcase logo (used on about/hvac pages). Aspect matches logo (1.24:1). */
.hero-logo {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1.24 / 1;
  background-image: url('../img/procare-logo.png');
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 22px 60px -20px rgba(0,0,0,0.45), 0 0 0 6px rgba(255,255,255,0.08);
}

/* Coming-soon banner */
.coming-soon {
  background: repeating-linear-gradient(45deg, #fef3c7, #fef3c7 12px, #fde68a 12px, #fde68a 24px);
  border: 2px dashed var(--pc-orange);
  border-radius: 14px;
}

/* Testimonial card */
.testimonial-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.75rem;
  border: 1px solid #e5e7eb;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -8px; left: 16px;
  font-size: 4rem;
  color: var(--pc-red);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: .4;
}
.stars { color: #f59e0b; letter-spacing: 2px; }

/* Active nav link */
.nav-link.active { color: var(--pc-red); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ==== Form success modal ==== */
.pc-toast-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  animation: pcFade .2s ease;
}
.pc-toast-backdrop.show { display: flex; }
.pc-toast-card {
  background: #fff;
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
  animation: pcPop .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pc-toast-icon {
  width: 80px; height: 80px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: #dcfce7;
  display: flex; align-items: center; justify-content: center;
  color: #16a34a;
  font-size: 2.5rem;
  animation: pcCheckPop .5s cubic-bezier(0.34, 1.56, 0.64, 1) .15s both;
}
.pc-toast-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pc-navy);
  margin: 0 0 .5rem;
}
.pc-toast-body {
  color: #475569;
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
}
.pc-toast-extras {
  background: #f8fafc;
  border-radius: 8px;
  padding: .85rem 1rem;
  margin-bottom: 1.5rem;
  font-size: .85rem;
  color: #475569;
}
.pc-toast-extras strong { color: var(--pc-navy); }
.pc-toast-actions { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.pc-toast-btn {
  background: var(--pc-red);
  color: #fff;
  padding: .75rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.pc-toast-btn:hover { background: #b91c1c; }
.pc-toast-btn.ghost { background: #fff; color: var(--pc-navy); border: 1px solid #cbd5e1; }
.pc-toast-btn.ghost:hover { background: #f1f5f9; }

@keyframes pcFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pcPop { from { opacity: 0; transform: scale(.85) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes pcCheckPop { 0% { transform: scale(0); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* Utility */
.text-pc-navy { color: var(--pc-navy) !important; }
.bg-pc-navy { background-color: var(--pc-navy) !important; }
.text-pc-red { color: var(--pc-red) !important; }
.bg-pc-red { background-color: var(--pc-red) !important; }
.border-pc-red { border-color: var(--pc-red) !important; }
