/* ===================================================================
   Deacon Plumbing & Heating Co., Inc. — Stoughton, MA
   Est. 1886
   =================================================================== */

:root {
  --navy: #10233f;
  --navy-deep: #0a1730;
  --navy-mid: #1c3660;
  --copper: #c17a3e;
  --copper-light: #e0a366;
  --ivory: #f7f4ee;
  --ivory-dark: #efe9dd;
  --ink: #1a2233;
  --slate: #56607a;
  --border: rgba(16, 35, 63, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background-color: var(--ivory);
  line-height: 1.65;
}

h1, h2, h3, h4, .display-font {
  font-family: "Playfair Display", Georgia, serif;
}

a {
  text-decoration: none;
}

.section-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: inline-block;
}

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-pad {
  padding: 5.5rem 0;
}

.section-pad-sm {
  padding: 3.5rem 0;
}

.lede {
  color: var(--slate);
  font-size: 1.08rem;
  max-width: 640px;
}

/* ---------- Navbar ---------- */
.navbar-deacon {
  background-color: rgba(247, 244, 238, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  transition: box-shadow 0.2s ease;
}

.navbar-deacon.scrolled {
  box-shadow: 0 4px 18px rgba(16, 35, 63, 0.08);
}

.navbar-brand-deacon {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy) !important;
}

.navbar-brand-deacon img {
  height: 46px;
  width: 46px;
  object-fit: contain;
  border-radius: 50%;
}

.navbar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.navbar-brand-text .brand-name {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}

.navbar-brand-text .brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
}

.navbar-deacon .nav-link {
  color: var(--navy) !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 0.85rem !important;
}

.navbar-deacon .nav-link:hover {
  color: var(--copper) !important;
}

.btn-call {
  background-color: var(--copper);
  border: none;
  color: #fff !important;
  font-weight: 700;
  padding: 0.55rem 1.3rem;
  border-radius: 4px;
  white-space: nowrap;
}

.btn-call:hover {
  background-color: #a8622c;
  color: #fff;
}

/* ---------- Hero: duotone color-wash, centered ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('img/hero.webp') center/cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, rgba(10, 23, 48, 0.55) 0%, rgba(10, 23, 48, 0.15) 100%),
    linear-gradient(to bottom, rgba(10, 23, 48, 0.55) 0%, rgba(16, 35, 63, 0.35) 45%, rgba(10, 23, 48, 0.72) 100%),
    linear-gradient(135deg, rgba(16, 35, 63, 0.55) 0%, rgba(193, 122, 62, 0.28) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 2.5rem 2rem;
  margin: 0 1rem;
  background: rgba(8, 18, 38, 0.28);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-eyebrow {
  color: var(--copper-light);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.8);
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: #fff;
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  margin: 0.6rem 0 0.8rem;
  text-shadow: 0 0 4px rgba(0,0,0,1), 0 2px 20px rgba(0,0,0,0.95), 0 0 60px rgba(0,0,0,0.8);
}

.hero-subtitle {
  color: #f1ede4;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  max-width: 620px;
  margin: 0 auto 1.75rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,0.95), 0 0 40px rgba(0,0,0,0.85);
}

.hero-tagline {
  color: var(--copper-light);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-top: 1.25rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.9);
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background-color: var(--copper);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1.9rem;
  border-radius: 4px;
  font-size: 1rem;
}

.btn-hero-primary:hover {
  background-color: #a8622c;
  color: #fff;
}

.btn-hero-outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1.9rem;
  border-radius: 4px;
  font-size: 1rem;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background-color: var(--navy);
  color: #fff;
  padding: 1.6rem 0;
}

.trust-strip .trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.trust-strip .trust-item i {
  color: var(--copper-light);
  font-size: 1.2rem;
}

/* ---------- Services ---------- */
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.2rem 1.9rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(16, 35, 63, 0.1);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.service-icon i {
  color: var(--copper-light);
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 0.85rem;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--slate);
  font-size: 0.94rem;
}

.service-card ul li {
  padding: 0.32rem 0;
  border-top: 1px solid var(--border);
}

.service-card ul li:first-child {
  border-top: none;
}

.service-card ul li i {
  color: var(--copper);
  margin-right: 0.5rem;
  font-size: 0.8rem;
}

/* ---------- Products ---------- */
.section-navy {
  background-color: var(--navy);
  color: #eef1f6;
}

.section-navy .section-title {
  color: #fff;
}

.section-navy .lede {
  color: #c3ccdc;
}

.product-tile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
}

.product-tile .product-img-wrap {
  background: #f7f4ee;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-tile img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.product-tile .product-label {
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  color: #eef1f6;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Specials ---------- */
.special-card {
  background: linear-gradient(160deg, #fff 0%, var(--ivory-dark) 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.4rem 1.8rem;
  text-align: center;
  height: 100%;
  position: relative;
}

.special-card .special-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--copper);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.6rem;
}

.special-card .special-amount {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.special-card p.special-desc {
  color: var(--slate);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.special-card .special-note {
  font-size: 0.75rem;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-top: 0.6rem;
  display: block;
}

/* ---------- Heritage / gallery ---------- */
.heritage-intro {
  max-width: 760px;
}

.heritage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.heritage-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ivory-dark);
  border: 1px solid var(--border);
}

.heritage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heritage-item .heritage-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(10, 23, 48, 0.88), rgba(10, 23, 48, 0));
  color: #fff;
  font-size: 0.75rem;
  padding: 1.6rem 0.7rem 0.55rem;
  font-weight: 600;
}

.since-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1.1rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.since-badge i {
  color: var(--copper-light);
}

/* ---------- Testimonial ---------- */
.testimonial-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.8rem;
  position: relative;
}

.testimonial-panel i.bi-quote {
  font-size: 2.2rem;
  color: var(--copper);
}

.testimonial-quote {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  color: var(--navy);
  font-style: italic;
  margin: 1rem 0 1.2rem;
}

.testimonial-attrib {
  font-weight: 700;
  color: var(--ink);
}

.testimonial-attrib span {
  display: block;
  font-weight: 400;
  color: var(--slate);
  font-size: 0.85rem;
}

.testimonial-media {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
}

.testimonial-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

/* ---------- About ---------- */
.about-photo {
  width: 150px;
  height: 176px;
  object-fit: cover;
  border-radius: 8px;
  border: 4px solid #fff;
  box-shadow: 0 10px 28px rgba(16, 35, 63, 0.18);
}

.credential-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}

.credential-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  color: var(--slate);
  font-size: 0.94rem;
}

.credential-list li i {
  color: var(--copper);
}

/* ---------- FAQ ---------- */
.accordion-deacon .accordion-item {
  border: 1px solid var(--border);
  margin-bottom: 0.7rem;
  border-radius: 8px !important;
  overflow: hidden;
}

.accordion-deacon .accordion-button {
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  font-size: 0.98rem;
}

.accordion-deacon .accordion-button:not(.collapsed) {
  background: var(--ivory-dark);
  color: var(--navy);
  box-shadow: none;
}

.accordion-deacon .accordion-button:focus {
  box-shadow: none;
  border-color: var(--border);
}

.accordion-deacon .accordion-body {
  color: var(--slate);
  font-size: 0.94rem;
}

/* ---------- Location / Contact ---------- */
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  height: 100%;
}

.contact-card h3 {
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.contact-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  color: var(--slate);
  font-size: 0.95rem;
}

.contact-row i {
  color: var(--copper);
  font-size: 1.1rem;
  margin-top: 0.15rem;
}

.contact-row a {
  color: var(--ink);
  font-weight: 600;
}

.contact-row a:hover {
  color: var(--copper);
}

.map-frame {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
  min-height: 340px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

/* ---------- Footer ---------- */
.footer-deacon {
  background: var(--navy-deep);
  color: #cbd3e1;
  padding: 3.5rem 0 1.8rem;
}

.footer-logo-chip {
  background: var(--ivory);
  border-radius: 12px;
  padding: 0.6rem;
  display: inline-flex;
  width: 68px;
  height: 68px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-logo-chip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.footer-deacon h5 {
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-deacon a {
  color: #cbd3e1;
}

.footer-deacon a:hover {
  color: var(--copper-light);
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li {
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-right: 0.5rem;
  color: #fff;
}

.footer-social a:hover {
  background: var(--copper);
  border-color: var(--copper);
}

.powered-by {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #9aa5ba;
}

.powered-by a {
  color: var(--copper-light);
  font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
  .section-pad {
    padding: 3.5rem 0;
  }

  .heritage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content {
    padding: 1.8rem 1.3rem;
  }

  .navbar-brand-deacon img {
    height: 38px;
    width: 38px;
  }

  .navbar-brand-text .brand-name {
    font-size: 1rem;
  }
}
