/* ==============================================
   PDX WATER HEATER PROS — SHARED STYLESHEET
   Fonts: Bebas Neue (display) + Outfit (body)
   Import via: <link href="../css/main.css" rel="stylesheet">
   ============================================== */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--gray-800); background: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

/* ---- Design Tokens ---- */
:root {
  --navy:         #0A1628;
  --navy-2:       #0D1E38;
  --navy-3:       #122040;
  --orange:       #FF5C00;
  --orange-hover: #E54E00;
  --orange-glow:  rgba(255,92,0,0.32);
  --orange-tint:  rgba(255,92,0,0.10);
  --white:        #FFFFFF;
  --off-white:    #F5F3EF;
  --gray-100:     #EDECEA;
  --gray-200:     #DDDAD5;
  --gray-400:     #A09C96;
  --gray-600:     #6B6760;
  --gray-800:     #3A3733;
  --green:        #22C55E;
  --red:          #DC2626;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Outfit', sans-serif;
  --shadow-xs:    0 1px 4px rgba(10,22,40,0.08);
  --shadow-sm:    0 2px 12px rgba(10,22,40,0.10);
  --shadow-md:    0 8px 32px rgba(10,22,40,0.16);
  --shadow-lg:    0 20px 60px rgba(10,22,40,0.24);
  --shadow-orng:  0 8px 32px rgba(255,92,0,0.32);
  --radius-sm:    4px;
  --radius:       8px;
  --radius-lg:    14px;
  --ease:         cubic-bezier(0.4,0,0.2,1);
  --t:            0.25s var(--ease);
}

/* ---- Announcement Bar ---- */
.ann-bar {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.4;
}
.ann-bar a { color: var(--white); text-decoration: underline; }
.ann-bar strong { font-weight: 800; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--navy);
  border-bottom: 2px solid rgba(255,92,0,0.22);
  transition: box-shadow var(--t);
}
.site-header.is-scrolled { box-shadow: 0 4px 40px rgba(0,0,0,0.35); }
.header-wrap {
  max-width: 1300px; margin: 0 auto; padding: 0 28px;
  height: 72px; display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark {
  width: 42px; height: 42px; background: var(--orange);
  border-radius: 8px; display: grid; place-items: center; flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.06em; color: var(--white); }
.logo-sub  { font-size: 10px; font-weight: 600; color: var(--orange); letter-spacing: 0.12em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: 16px; }
.main-nav a {
  padding: 8px 13px; font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.75); border-radius: var(--radius-sm);
  transition: color var(--t), background var(--t);
}
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.header-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header-phone {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700; color: var(--white);
  letter-spacing: -0.01em; transition: color var(--t);
}
.header-phone:hover { color: var(--orange); }
.header-phone .ph-icon { color: var(--orange); }
.btn-nav {
  padding: 10px 22px; background: var(--orange); color: var(--white);
  font-size: 14px; font-weight: 700; border-radius: var(--radius-sm);
  letter-spacing: 0.02em; transition: background var(--t), transform var(--t), box-shadow var(--t);
}
.btn-nav:hover { background: var(--orange-hover); transform: translateY(-1px); box-shadow: var(--shadow-orng); }
.hamburger { display: none; color: var(--white); padding: 6px; }
.mobile-nav {
  display: none; position: fixed; inset: 0; background: var(--navy);
  z-index: 950; padding: 28px; flex-direction: column; gap: 6px;
}
.mobile-nav.open { display: flex; }
.mobile-nav-close { align-self: flex-end; color: var(--white); font-size: 28px; cursor: pointer; margin-bottom: 16px; }
.mobile-nav a { display: block; padding: 14px 0; font-size: 22px; font-family: var(--font-display); letter-spacing: 0.05em; color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-call { margin-top: 24px; display: flex !important; align-items: center; justify-content: center; gap: 10px; background: var(--orange) !important; padding: 16px; border-radius: var(--radius); font-size: 20px; font-weight: 700; border-bottom: none !important; }

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--orange); color: var(--white);
  padding: 16px 32px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 16px; border: none;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  box-shadow: var(--shadow-orng); white-space: nowrap; cursor: pointer;
}
.btn-primary:hover { background: var(--orange-hover); transform: translateY(-2px); box-shadow: 0 14px 44px rgba(255,92,0,0.44); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.22);
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 16px;
  transition: border-color var(--t), color var(--t); white-space: nowrap;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-orange-outline {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--orange);
  border: 2px solid var(--orange);
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 15px;
  transition: background var(--t), color var(--t); white-space: nowrap;
}
.btn-orange-outline:hover { background: var(--orange); color: var(--white); }

/* ---- Layout Utilities ---- */
.section    { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.wrap { max-width: 1300px; margin: 0 auto; padding: 0 28px; }
.bg-white    { background: var(--white); }
.bg-offwhite { background: var(--off-white); }
.bg-navy     { background: var(--navy); }

/* ---- Section Typography ---- */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 10px;
}
.section-eyebrow::before { content: ''; display: block; width: 22px; height: 2px; background: var(--orange); }
.section-h {
  font-family: var(--font-display);
  font-size: clamp(34px,4vw,56px);
  line-height: 0.97; letter-spacing: 0.03em; color: var(--navy); margin-bottom: 14px;
}
.section-h-white { color: var(--white); }
.section-p { font-size: 16.5px; line-height: 1.72; color: var(--gray-400); max-width: 560px; }
.section-p-white { color: rgba(255,255,255,0.62); }
.section-head { margin-bottom: 52px; }
.section-head--center { text-align: center; }
.section-head--center .section-eyebrow { justify-content: center; }
.section-head--center .section-p { margin: 0 auto; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 20px; flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color var(--t); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb-sep { color: rgba(255,255,255,0.25); font-size: 11px; }
.breadcrumb-current { color: var(--orange); font-weight: 600; }

/* ---- Trust Bar ---- */
.trust-bar { background: var(--off-white); border-top: 3px solid var(--orange); }
.trust-bar-inner {
  max-width: 1300px; margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: repeat(4,1fr);
}
.tb-item { display: flex; align-items: center; gap: 14px; padding: 20px; border-right: 1px solid var(--gray-200); }
.tb-item:last-child { border-right: none; }
.tb-icon { width: 46px; height: 46px; background: var(--navy); border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.tb-title { font-weight: 700; font-size: 14.5px; color: var(--navy); }
.tb-desc  { font-size: 12px; color: var(--gray-400); margin-top: 2px; }

/* ---- Service Cards ---- */
.svc-card {
  display: block; background: var(--white);
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 32px 28px 28px; position: relative; overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.svc-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.svc-card:hover { border-color: rgba(255,92,0,0.4); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.svc-card:hover::after { transform: scaleX(1); }
.svc-card--dark { background: var(--navy); border-color: var(--orange); }
.svc-card--dark .svc-name { color: var(--white); }
.svc-card--dark .svc-desc { color: rgba(255,255,255,0.58); }
.svc-card--dark .svc-icon-wrap { background: rgba(255,92,0,0.18); }
.svc-icon-wrap {
  width: 56px; height: 56px; background: var(--orange-tint);
  border-radius: 10px; display: grid; place-items: center;
  margin-bottom: 20px; transition: background var(--t);
}
.svc-icon-wrap svg { color: var(--orange); transition: color var(--t); }
.svc-card:not(.svc-card--dark):hover .svc-icon-wrap { background: var(--orange); }
.svc-card:not(.svc-card--dark):hover .svc-icon-wrap svg { color: var(--white); }
.svc-name { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.04em; color: var(--navy); margin-bottom: 10px; }
.svc-desc { font-size: 14px; color: var(--gray-400); line-height: 1.68; margin-bottom: 22px; }
.svc-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--orange); }
.svc-link svg { transition: transform var(--t); }
.svc-card:hover .svc-link svg { transform: translateX(4px); }

/* ---- Review Cards ---- */
.review-card {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 26px;
  transition: border-color var(--t), box-shadow var(--t);
}
.review-card:hover { border-color: rgba(255,92,0,0.35); box-shadow: var(--shadow-sm); }
.review-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.reviewer-row { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 18px; color: var(--white); flex-shrink: 0; }
.reviewer-name { font-weight: 700; font-size: 15px; color: var(--navy); }
.reviewer-meta { font-size: 12px; color: var(--gray-400); margin-top: 2px; }
.google-badge { width: 30px; height: 30px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm); display: grid; place-items: center; font-family: sans-serif; font-weight: 700; font-size: 15px; color: #4285F4; }
.review-stars { display: flex; gap: 2px; margin-bottom: 12px; }
.star { font-size: 17px; color: #FBBF24; }
.review-body { font-size: 14px; color: var(--gray-600); line-height: 1.72; font-style: italic; }
.review-body::before { content: '\201C'; }
.review-body::after  { content: '\201D'; }

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1.5px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; transition: border-color var(--t); }
.faq-item.is-open { border-color: var(--orange); }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; cursor: pointer; gap: 16px; user-select: none; }
.faq-q-text { font-weight: 600; font-size: 15px; color: var(--navy); line-height: 1.4; }
.faq-toggle { width: 30px; height: 30px; border-radius: 50%; background: var(--off-white); display: grid; place-items: center; flex-shrink: 0; transition: background var(--t), transform var(--t); color: var(--navy); }
.faq-item.is-open .faq-toggle { background: var(--orange); color: var(--white); transform: rotate(45deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.38s var(--ease); }
.faq-item.is-open .faq-body { max-height: 320px; }
.faq-body-inner { padding: 0 22px 20px; font-size: 14px; color: var(--gray-400); line-height: 1.78; }

/* ---- City Chips ---- */
.city-chip {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--navy);
  transition: border-color var(--t), color var(--t), transform var(--t);
}
.city-chip svg { color: var(--orange); }
.city-chip:hover { border-color: var(--orange); color: var(--orange); transform: translateX(3px); }

/* ---- Pulse animation ---- */
.pill-dot, .pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--orange);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.4; transform:scale(1.4); }
}

/* ---- Scroll Reveal ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }

/* ---- Mobile Sticky Bar ---- */
.mobile-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 880;
  background: var(--navy); border-top: 2px solid var(--orange);
  padding: 10px 16px; gap: 10px;
}
.mobile-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px; transition: opacity var(--t);
}
.bar-call  { background: var(--orange); color: var(--white); }
.bar-quote { background: rgba(255,255,255,0.08); color: var(--white); border: 1.5px solid rgba(255,255,255,0.18); }

/* ---- Footer ---- */
.site-footer { background: #05101F; color: var(--white); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 52px; }
.footer-desc { font-size: 14px; color: rgba(255,255,255,0.48); line-height: 1.72; margin-bottom: 24px; max-width: 300px; }
.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,0.55); }
.footer-contact-item svg { color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: rgba(255,255,255,0.55); transition: color var(--t); }
.footer-contact-item a:hover { color: var(--orange); }
.footer-col-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.32); margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 13.5px; color: rgba(255,255,255,0.55); transition: color var(--t), padding-left var(--t); }
.footer-links a:hover { color: var(--orange); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-copy { font-size: 12.5px; color: rgba(255,255,255,0.3); }
.ccb-badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); padding: 6px 14px; border-radius: 100px; font-size: 11.5px; color: rgba(255,255,255,0.38); }

/* ---- Location page neighbourhood + sidebar two-col layout ---- */
.loc-nbhd-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: start;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .wrap { padding: 0 20px; }
  .trust-bar-inner { grid-template-columns: 1fr 1fr; }
  .tb-item:nth-child(2) { border-right: none; }
  .tb-item:nth-child(3) { border-right: 1px solid var(--gray-200); }
  .main-nav, .btn-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 70px; }
  .header-phone { font-size: 15px; }
  /* Collapse location page neighbourhood sidebar */
  .loc-nbhd-wrap { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .wrap { padding: 0 16px; }
  .trust-bar-inner { grid-template-columns: 1fr; }
  .tb-item { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .tb-item:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  /* Hero buttons stack full-width */
  .page-btns { flex-direction: column; }
  .page-btns .btn-primary,
  .page-btns .btn-outline { width: 100%; justify-content: center; }
  /* Trust row tighter gap */
  .hero-trust-row { gap: 10px !important; }
  .hero-trust-item { font-size: 12px !important; }
  /* Hero section padding */
  .page-hero { padding: 52px 0 64px !important; }
}

@media (max-width: 480px) {
  .section { padding: 44px 0; }
  .section-sm { padding: 40px 0; }
  .wrap { padding: 0 14px; }
  .ann-bar { font-size: 11.5px; padding: 7px 12px; }
  /* Hide phone number — mobile bar covers this */
  .header-phone { display: none; }
  .header-wrap { padding: 0 14px; gap: 10px; }
  /* Hero section and inner content padding */
  .page-hero { padding: 40px 0 52px !important; }
  .page-hero-inner { padding: 0 14px !important; }
  /* Scale down hero heading on tiny phones */
  .page-h1 { font-size: clamp(32px, 9vw, 44px) !important; }
  .page-sub { font-size: 15px !important; }
  /* Section headings */
  .section-h { font-size: clamp(26px, 8vw, 40px); }
  /* Emergency strip */
  .emergency-inner { padding: 0 14px !important; }
  .btn-emergency { font-size: 18px !important; padding: 14px 20px !important; }
  .emergency-h { font-size: clamp(22px, 7vw, 36px) !important; }
  /* Footer bottom row */
  .ccb-badge { font-size: 10.5px; padding: 5px 10px; }
}
