/* ===== Bausch Plumbing - main stylesheet =====
   Colors are set once here; change them to restyle the whole site. */
:root {
  --navy: #14304d;        /* headings, bid band */
  --navy-dark: #0d2137;   /* footer */
  --blue: #3170b3;        /* buttons, accents */
  --blue-light: #8fb8e6;  /* links on dark backgrounds */
  --gray-bg: #edf1f4;     /* light section background */
  --band: #d9dee3;        /* "Serving Greater Cincinnati" band */
  --text: #3b4654;
  --border: #c9d1da;
  --head-font: "Zilla Slab", Georgia, serif;
  --body-font: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body-font); font-size: 17px; line-height: 1.6; color: var(--text); background: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head-font); color: var(--navy); line-height: 1.15; margin: 0 0 .4em; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ----- Buttons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .8em 1.4em; border-radius: 3px; font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--body-font); line-height: 1.2; }
.btn-blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-blue:hover { background: #285e98; border-color: #285e98; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-outline-light { color: #fff; border-color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-outline-dark { color: var(--navy); border-color: var(--navy); background: #fff; }
.btn-outline-dark:hover { background: var(--gray-bg); }
.btn-sm { padding: .45em .9em; font-weight: 600; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }

/* ----- Header ----- */
.site-header { background: #fff; border-bottom: 2px solid var(--navy); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--head-font); font-weight: 700; font-size: 26px; color: var(--navy); }
.brand-sub { font-size: 11px; font-weight: 700; letter-spacing: .28em; color: var(--blue); margin-top: 4px; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-sub { color: var(--blue-light); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav > a:not(.btn) { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 3px solid transparent; }
.site-nav > a:not(.btn):hover, .site-nav > a.active { border-bottom-color: var(--blue); }
.menu-btn { display: none; background: #fff; border: 2px solid var(--navy); border-radius: 4px; color: var(--navy); font: 700 17px var(--body-font); padding: 8px 14px; cursor: pointer; }

/* ----- Hero (home) ----- */
.hero { color: #fff; padding: 100px 0 110px; border-bottom: 4px solid var(--blue);
  background: linear-gradient(90deg, #12233a 0%, rgba(18,35,58,.85) 50%, rgba(18,35,58,.1) 100%), url("../images/hero.jpg") right center / auto 100% no-repeat, #12233a; }
.hero h1 { color: #fff; font-size: clamp(36px, 5.4vw, 56px); max-width: 680px; }
.hero .lead { font-size: 18px; color: #dbe5ef; margin: 20px 0 0; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; padding: 0; margin: 14px 0; font-size: 14px; font-weight: 700; color: var(--navy); }
.badges li { display: inline-flex; align-items: center; gap: 6px; }
.badges li + li::before { content: "·"; margin: 0 12px; color: #8a96a3; }
.badges .ic { color: var(--blue); }
.badges-light, .site-footer .badges { color: #fff; }
.badges-light .ic, .site-footer .badges .ic { color: #cfe0f2; }

/* ----- Sections ----- */
.section { padding: 70px 0; }
.section-gray { background: var(--gray-bg); }
.accent { display: block; width: 56px; height: 4px; background: var(--blue); margin-bottom: 18px; }
.section-title { font-size: clamp(30px, 3.5vw, 38px); }
.section-title a { color: inherit; text-decoration: none; }

.tiles { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid var(--navy); border-top: 4px solid var(--blue); padding: 18px 16px; min-height: 86px; font-family: var(--head-font); font-weight: 600; font-size: 17px; color: var(--navy); line-height: 1.25; }
.tile .ic { color: var(--blue); width: 22px; height: 22px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-top { align-items: start; }
.photo { margin: 0; border: 2px solid var(--navy); box-shadow: 10px 10px 0 #d3dbe3; }
.photo img { width: 100%; height: auto; }
.photo-narrow { max-width: 420px; }
.callout { border-left: 4px solid var(--blue); padding: 4px 0 4px 14px; color: var(--navy); font-size: 15px; }

.serving { background: var(--band); padding: 26px 0; }
.serving p { margin: 0; font-weight: 700; color: var(--navy); font-size: 16px; }

.bid { background: var(--navy); color: #d6e0ea; padding: 60px 0; }
.bid-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.bid h2 { color: #fff; font-size: clamp(30px, 3.5vw, 38px); margin: 0; }
.bid p { margin: 4px 0 0; }
.bid a:not(.btn) { color: var(--blue-light); }
.bid .btn-row { margin: 0; }

/* ----- Page heading (inner pages) ----- */
.page-head { padding: 50px 0 40px; border-bottom: 1px solid #dfe4ea; }
.page-head h1 { font-size: clamp(36px, 5vw, 48px); margin-bottom: .3em; }
.page-head p { margin: 0; font-size: 18px; color: #5d6875; }

/* ----- Services cards ----- */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: #fff; border: 2px solid var(--navy); display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 253 / 161; object-fit: cover; border-bottom: 3px solid var(--blue); }
.card-body { display: flex; gap: 10px; padding: 14px 16px 22px; }
.card-body .ic { color: var(--blue); width: 22px; height: 22px; margin-top: 2px; }
.card h3 { font-size: 18px; margin: 0 0 4px; }
.card p { margin: 0; font-size: 15px; color: #5d6875; line-height: 1.4; }

/* ----- Contact ----- */
.contact-list { margin: 0; border-top: 2px solid var(--navy); }
.contact-list > div { padding: 16px 0; border-bottom: 1px solid #dfe4ea; }
.contact-list dt { font-size: 13px; color: #5d6875; }
.contact-list dd { margin: 2px 0 0; color: var(--navy); }
.contact-list dd.big { font-family: var(--head-font); font-weight: 700; font-size: 22px; }
.contact-list dd a { color: var(--navy); text-decoration: none; }
.note { background: #e8f0f8; border-left: 4px solid var(--blue); padding: 16px 18px; margin-top: 24px; color: var(--navy); font-size: 15px; }
.form-box { border: 2px solid var(--navy); padding: 26px 24px; background: #fff; }
.form-box h2 { font-size: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--navy); }
.form-grid .full { grid-column: 1 / -1; }
.req { color: var(--blue); }
.form-grid input, .form-grid select, .form-grid textarea { font: 400 16px var(--body-font); padding: 11px 12px; border: 2px solid var(--border); border-radius: 3px; color: var(--text); background: #fff; width: 100%; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: none; border-color: var(--blue); }
.hint { font-size: 13px; color: #5d6875; margin: 14px 0; }

/* ----- Footer ----- */
.site-footer { background: var(--navy-dark); color: #c9d4df; padding: 50px 0 30px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid #253a52; }
.call-drew { font-family: var(--head-font); font-weight: 700; font-size: clamp(24px, 3vw, 30px); color: #fff; margin: 0; }
.call-drew a { color: var(--blue-light); text-decoration: none; }
.footer-mid { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 0 10px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: #e3eaf1; text-decoration: none; font-size: 15px; }
.footer-nav a:hover { text-decoration: underline; }
.footer-license { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 14px; color: #fff; }
.footer-license .badges { font-size: 13px; }
.copyright { font-size: 13px; color: #8193a7; margin: 6px 0 0; }

.mobile-bar { display: none; }

/* ----- Tablet ----- */
@media (max-width: 960px) {
  .tiles, .cards { grid-template-columns: repeat(2, 1fr); }
}

/* ----- Phone ----- */
@media (max-width: 760px) {
  body { padding-bottom: 56px; }
  .menu-btn { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 18px; border-bottom: 2px solid var(--navy); }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) { padding: 12px 0; border-bottom: 1px solid #e3e8ee; }
  .site-nav .btn { margin-top: 12px; }
  .hero { padding: 60px 0 70px; background: linear-gradient(rgba(18,35,58,.82), rgba(18,35,58,.82)), url("../images/hero.jpg") center / cover no-repeat, #12233a; }
  .hero .btn-row .btn, .bid .btn-row .btn { width: 100%; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-rev .photo { order: -1; }
  .form-grid { grid-template-columns: 1fr; }
  .bid-inner .btn-row { width: 100%; }
  .footer-license { flex-direction: column; align-items: flex-start; gap: 6px; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: 56px; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; }
  .mb-call { flex: 1.7; background: var(--blue); }
  .mb-email { flex: 1; background: var(--navy); }
}

.attachment-field { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--navy); }
.attachment-field input { max-width: 100%; font: inherit; }

/* Compact secondary residential section below services. */
.residential { padding: 22px 0; background: var(--gray-bg); border-bottom: 1px solid var(--border); }
.residential-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.residential h2 { font-size: 24px; margin: 0 0 5px; }
.residential p { margin: 0; font-size: 16px; max-width: 690px; }
#pricing-form { scroll-margin-top: 100px; }

/* Project placeholders and team photo use the existing card and photo styles. */
.project-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photo figcaption { padding: 12px 16px; font-size: 15px; background: var(--gray-bg); }
@media (max-width: 960px) { .project-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .cards, .tiles { grid-template-columns: 1fr; } .contact-list dd.big { font-size: 20px; overflow-wrap: anywhere; } }

/* Our Work photo grid: photos only, no captions */
.project-cards .card img { border-bottom: 0; aspect-ratio: 3 / 2; display: block; }
