/* ============================================================
   Calloway Plumbing Co. — Manhattan
   ============================================================ */
:root {
  --navy-900: #081627;
  --navy-800: #0b1f33;
  --navy-700: #12304d;
  --navy-100: #e8eef4;
  --brass-500: #b9863b;
  --brass-400: #d9a85c;
  --brass-100: #f6ecdc;
  --ink: #1c2733;
  --muted: #5a6a7a;
  --paper: #faf8f4;
  --white: #ffffff;
  --green: #1e7d4f;
  --radius: 14px;
  --shadow-lg: 0 24px 60px -18px rgba(8, 22, 39, 0.35);
  --shadow-md: 0 12px 32px -12px rgba(8, 22, 39, 0.22);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brass-500); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--brass-500); }
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; color: var(--navy-800); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-900); color: #c6d2de; font-size: 13px;
  padding: 8px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar strong { color: var(--brass-400); font-weight: 600; }
.topbar span { display: inline-flex; align-items: center; gap: 7px; }
/* On desktop both messages are always visible; the slider only kicks in on mobile */

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(8, 22, 39, 0.08);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { color: var(--navy-800); display: flex; align-items: center; }
.logo svg, .logo img { height: 52px; width: auto; }
.nav { display: flex; gap: 34px; font-size: 15px; font-weight: 500; color: var(--navy-700); }
.nav a { position: relative; padding: 6px 0; }
.nav a:hover { color: var(--brass-500); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.phone-link { font-weight: 700; color: var(--navy-800); font-size: 16px; white-space: nowrap; }
.phone-link small { display: block; font-size: 11px; font-weight: 600; color: var(--brass-500); letter-spacing: 0.14em; text-transform: uppercase; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer; border: none;
}
.btn-primary { background: var(--brass-500); color: #fff; box-shadow: 0 10px 24px -8px rgba(185, 134, 59, 0.55); }
.btn-primary:hover { background: #a97731; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-700); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--navy-900);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("../images/faucet.jpg") center/cover;
  opacity: 0.28;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,22,39,0.96) 34%, rgba(8,22,39,0.62) 62%, rgba(8,22,39,0.35) 100%);
}
.hero .wrap {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: end;
  padding-top: 84px;
}
.hero-copy { padding-bottom: 96px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 500;
  margin-bottom: 26px; color: #e6edf4;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #35c26f; box-shadow: 0 0 0 4px rgba(53,194,111,0.25); }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.06; font-weight: 600; }
.hero h1 em { font-style: italic; color: var(--brass-400); }
.hero-sub { margin-top: 22px; font-size: 18px; color: #b9c6d4; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: 14px; margin-top: 40px; flex-wrap: nowrap; }
.g-rating { display: flex; align-items: center; gap: 9px; flex: none; }
.g-rating .score { font-family: var(--serif); font-size: 26px; font-weight: 700; }
.stars { color: #f5b234; font-size: 15px; letter-spacing: 2px; }
.g-rating small { color: #9fb0c0; font-size: 12px; display: block; white-space: nowrap; }
.proof-sep { width: 1px; height: 40px; background: rgba(255,255,255,0.18); flex: none; }
.lic-chip { font-size: 11.5px; color: #9fb0c0; flex: none; white-space: nowrap; }
.lic-chip b { color: #fff; display: block; font-size: 12.5px; }

.hero-figure { position: relative; align-self: stretch; min-height: 520px; }
.hero-figure img.team {
  position: absolute; bottom: 0; right: 0;
  /* width + height both auto with max constraints keeps the square aspect ratio
     intact — setting an explicit width alongside max-height would squash it. */
  width: auto; height: auto; max-width: 118%; max-height: calc(100% - 172px);
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.45));
}
.float-card {
  position: absolute; z-index: 3; background: #fff; color: var(--ink);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 14px 18px;
  font-size: 13px; line-height: 1.35;
}
.float-card b { display: block; font-size: 14px; }
/* Both trust cards live in a reserved clear band at the top of the figure,
   above the two people and never over the copy column — robust at any width. */
.float-card.review { left: 0; top: 14px; max-width: 186px; }
.float-card.review .stars { color: #f5b234; font-size: 12px; }
.float-card.jobs { right: 0; top: 14px; text-align: center; max-width: 126px; }
.float-card.jobs .num { font-size: 22px; }
.float-card.jobs .num { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--navy-800); }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--white); border-bottom: 1px solid rgba(8,22,39,0.07); }
.trustbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px; padding-bottom: 22px; gap: 20px; flex-wrap: nowrap;
}
.trust-item { display: flex; align-items: center; gap: 11px; font-size: 12.5px; color: var(--muted); flex: 1 1 0; min-width: 0; }
.trust-item svg { flex: none; width: 27px; height: 27px; }
.trust-item b { color: var(--navy-800); display: block; font-size: 13.5px; }

/* ---------- Stats strip ---------- */
.stats { background: var(--navy-800); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.stat { text-align: center; border-left: 1px solid rgba(255,255,255,0.12); }
.stat:first-child { border-left: none; }
.stat .num { font-family: var(--serif); font-size: clamp(34px, 4vw, 46px); font-weight: 700; color: var(--brass-400); }
.stat p { color: #a9b8c7; font-size: 14px; margin-top: 6px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .thumb { height: 200px; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.card:hover .thumb img { transform: scale(1.05); }
.card .body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 21px; color: var(--navy-800); }
.card p { color: var(--muted); font-size: 15px; margin-top: 10px; flex: 1; }
.card .link { margin-top: 18px; font-weight: 600; font-size: 14px; color: var(--brass-500); }
.card .link::after { content: " →"; }

/* ---------- Why / craftsmanship ---------- */
.why { background: var(--white); }
.why .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.why-media { position: relative; }
.why-media img.main { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/4.6; object-fit: cover; }
.why-media .badge-since {
  position: absolute; right: -26px; bottom: 40px; background: var(--brass-500); color: #fff;
  border-radius: 50%; width: 148px; height: 148px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; box-shadow: var(--shadow-lg);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.3;
}
.why-media .badge-since b { font-family: var(--serif); font-size: 34px; letter-spacing: 0; }
.why h2 { font-size: clamp(30px, 4vw, 40px); color: var(--navy-800); line-height: 1.15; }
.why .lead { margin-top: 18px; color: var(--muted); font-size: 17px; }
.checks { margin-top: 28px; display: grid; gap: 16px; }
.check { display: flex; gap: 14px; align-items: flex-start; }
.check .tick {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brass-100); color: var(--brass-500);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
  margin-top: 2px;
}
.check b { color: var(--navy-800); }
.check p { color: var(--muted); font-size: 14.5px; }
.sig { margin-top: 30px; display: flex; align-items: center; gap: 16px; }
.sig .avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; object-position: top; }
.sig .name b { display: block; color: var(--navy-800); }
.sig .name span { font-size: 13px; color: var(--muted); }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step {
  background: var(--white); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-md); position: relative;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--brass-100);
  -webkit-text-stroke: 1px var(--brass-400); line-height: 1; display: block; margin-bottom: 16px;
}
.step h3 { font-size: 18px; color: var(--navy-800); }
.step p { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ---------- Reviews ---------- */
.reviews { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.reviews::before {
  content: ""; position: absolute; inset: 0;
  background: url("../images/manhattan.jpg") center/cover; opacity: 0.10;
}
.reviews .wrap { position: relative; z-index: 2; }
.reviews .section-head h2 { color: #fff; }
.reviews .section-head p { color: #a9b8c7; }
.review-summary {
  display: flex; align-items: center; gap: 26px; margin-bottom: 44px; flex-wrap: wrap;
}
.review-summary .big { font-family: var(--serif); font-size: 56px; font-weight: 700; color: var(--brass-400); line-height: 1; }
.platforms { display: flex; gap: 14px; flex-wrap: wrap; }
.platform-chip {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
  padding: 10px 18px; border-radius: 10px; font-size: 13px;
}
.platform-chip b { display: block; font-size: 14.5px; }
.platform-chip .stars { font-size: 12px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.11);
  border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.review-card .stars { font-size: 14px; }
.review-card blockquote { font-size: 15px; color: #d7e0e9; line-height: 1.65; flex: 1; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer .ini {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--brass-500); color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.reviewer b { font-size: 14.5px; display: block; }
.reviewer span { font-size: 12.5px; color: #93a5b6; }
.verified { display: inline-flex; align-items: center; gap: 5px; color: #7fd7a4; font-size: 12px; font-weight: 600; }

/* ---------- Guarantee ---------- */
.guarantee .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.guarantee-box {
  background: var(--white); border: 2px solid var(--brass-400); border-radius: var(--radius);
  padding: 44px; text-align: center; box-shadow: var(--shadow-md); position: relative;
}
.guarantee-box .seal {
  width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--brass-500); color: #fff; display: flex; align-items: center; justify-content: center;
}
.guarantee-box h3 { font-size: 26px; color: var(--navy-800); }
.guarantee-box p { color: var(--muted); font-size: 15px; margin-top: 12px; }
.badges-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 8px; }
.badge-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white); border-radius: 12px; padding: 20px; box-shadow: var(--shadow-md);
}
.badge-item svg { flex: none; margin-top: 2px; }
.badge-item b { color: var(--navy-800); display: block; font-size: 15px; }
.badge-item p { font-size: 13.5px; color: var(--muted); margin-top: 3px; }

/* ---------- Areas ---------- */
.areas { background: var(--white); }
.areas .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.areas img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 16/11; object-fit: cover; }
.area-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.area-tag {
  background: var(--paper); border: 1px solid rgba(8,22,39,0.1); padding: 9px 18px;
  border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--navy-700);
}
.response-note {
  margin-top: 28px; display: flex; gap: 14px; align-items: center;
  background: var(--brass-100); border-radius: 12px; padding: 18px 22px; font-size: 14.5px;
}
.response-note b { color: var(--navy-800); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 60px; align-items: start; }
.faq-intro { position: sticky; top: 108px; }
.faq-intro h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; color: var(--navy-800); }
.faq-intro p { margin-top: 16px; color: var(--muted); font-size: 16px; }
.faq-list { max-width: none; }
.faq-item {
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow-md);
  margin-bottom: 14px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 22px 26px; font-weight: 600;
  color: var(--navy-800); font-size: 16px; display: flex; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--brass-500); line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .answer { padding: 0 26px 24px; color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0;
  background: url("../images/hero-bg.jpg") center/cover; opacity: 0.14;
}
.contact .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.contact h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.12; }
.contact .lead { color: #a9b8c7; margin-top: 16px; font-size: 17px; }
.contact-info { margin-top: 36px; display: grid; gap: 22px; }
.ci { display: flex; gap: 16px; align-items: flex-start; }
.ci svg { flex: none; margin-top: 3px; }
.ci b { display: block; font-size: 15.5px; }
.ci span { color: #a9b8c7; font-size: 14px; }
.form-card {
  background: var(--white); color: var(--ink); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow-lg);
}
.form-card h3 { font-size: 24px; color: var(--navy-800); }
.form-card .sub { font-size: 14px; color: var(--muted); margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.form-grid .full { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 600; color: var(--navy-700); display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid rgba(8,22,39,0.14);
  border-radius: 10px; font-family: inherit; font-size: 14.5px; background: var(--paper);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brass-400); border-color: transparent; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; display: flex; gap: 8px; align-items: center; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #93a5b6; border-top: 1px solid rgba(255,255,255,0.08); font-size: 14px; }
.footer .cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px;
  padding: 64px 0 48px;
}
.footer .logo { color: #fff; margin-bottom: 18px; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a:hover { color: var(--brass-400); }
.footer .credit {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0 4px;
  text-align: center; font-size: 13px; color: #aebccb;
}
.footer .credit b { color: var(--brass-400); font-weight: 600; }
.footer .legal {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px;
}
.footer .legal a { color: var(--brass-400); }
.footer .legal a b { font-weight: 600; }
.footer .legal a:hover { color: #fff; }
.footer .lic { font-size: 12.5px; line-height: 1.8; }

/* ---------- Sticky mobile call ---------- */
.mobile-call { display: none; }

/* ---------- Responsive ---------- */
/* Hero switches to a single column early (<=1180px): below this the 2-column
   figure becomes too narrow to hold both trust cards without them overlapping
   each other or the people. Single column gives a full-width, centered figure. */
@media (max-width: 1180px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { min-height: 560px; order: 2; }
  /* Centered image, height-capped so a clear band is always reserved on top. */
  .hero-figure img.team {
    width: auto; max-width: 62%; height: auto; max-height: calc(100% - 172px);
    left: 50%; transform: translateX(-50%); right: auto;
  }
  .hero-copy { padding-bottom: 40px; }
  /* Cards sit in the reserved band above the centered image, in opposite corners. */
  .float-card.review { left: 0; right: auto; bottom: auto; top: 0; max-width: 224px; }
  .float-card.jobs { right: 0; left: auto; top: 0; max-width: 150px; }
  .float-card.jobs .num { font-size: 26px; }
}
@media (max-width: 1020px) {
  .services-grid, .reviews-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .why .wrap, .guarantee .wrap, .areas .wrap, .contact .wrap { grid-template-columns: 1fr; gap: 48px; }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-intro { position: static; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: none; }
  .nav { display: none; }
  .trustbar .wrap { flex-wrap: wrap; }
  .trust-item { flex: 1 1 44%; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .services-grid, .reviews-grid, .process-grid, .badges-grid, .form-grid { grid-template-columns: 1fr; }
  .float-card.review { left: 0; }
  /* Bigger two-person image on phones (~+20%), reset the tablet centering */
  .hero-figure { min-height: 500px; }
  .hero-figure img.team {
    width: 79%; max-width: none; height: auto; max-height: none;
    left: auto; right: 10.5%; transform: none;
  }
  /* Stack the three proof items one per line on phones */
  .hero-proof { flex-direction: column; align-items: flex-start; gap: 16px; }
  .proof-sep { display: none; }
  /* Keep hero buttons side by side on phones */
  .hero-actions { flex-wrap: nowrap; gap: 10px; }
  .hero-actions .btn { flex: 1 1 0; padding: 14px 12px; font-size: 13.5px; white-space: nowrap; }
  .header-cta .btn { display: none; }
  .mobile-call {
    display: flex; position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 60;
  }
  .mobile-call .btn { width: 100%; }
}
/* ---------- Mobile topbar: rotating slider instead of stacking ---------- */
@media (max-width: 760px) {
  .topbar { padding: 7px 0; }
  .topbar .topbar-track {
    display: block; position: relative; height: 34px; overflow: hidden;
  }
  .topbar-msg {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center; text-align: center;
    gap: 6px; padding: 0 8px; font-size: 11.5px; line-height: 1.25;
    opacity: 0; transform: translateY(4px);
    transition: opacity 0.5s ease, transform 0.5s ease; pointer-events: none;
  }
  .topbar-msg.is-active { opacity: 1; transform: none; pointer-events: auto; }
}
