/* ===================================================================
   Frank Marrone & Sons Plumbing — concept redesign by rainearcher
   Commercial plumbing contractor. Navy + copper, steel neutrals.
   Mobile-first. Oswald display / Inter body. Component system shared
   with the agency's B2B template (cf. sites/durapak).
   =================================================================== */

:root {
  --ink:       #14181F;
  --ink-soft:  #222A33;
  --steel:     #56616E;
  --steel-lt:  #8A929C;
  --line:      #DBE1E7;
  --bg:        #FFFFFF;
  --bg-soft:   #F2F5F8;
  --bg-steel:  #E8EEF4;
  --navy:      #134074;
  --navy-dark: #0E3059;
  --navy-deep: #0B2545;
  --copper:    #C0743A;
  --copper-lt: #DCA06A;
  --white:     #FFFFFF;

  --maxw: 1140px;
  --pad: clamp(1.1rem, 4vw, 2.2rem);
  --r: 10px;
  --shadow: 0 1px 2px rgba(11,37,69,.07), 0 8px 28px rgba(11,37,69,.08);
  --shadow-lg: 0 18px 50px rgba(11,37,69,.18);

  --font-display: "Oswald", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-break: break-word;
}
h1 {
  font-size: clamp(1.72rem, 7vw, 4rem);
  letter-spacing: -0.015em;
}
h1 .hl { color: var(--copper-lt); }
h2 { font-size: clamp(1.55rem, 5.4vw, 2.65rem); }
h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: 0; }

.lead {
  font-size: clamp(1rem, 2.6vw, 1.18rem);
  color: var(--steel);
  line-height: 1.62;
  max-width: 58ch;
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: .7rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1rem;
  padding: .85rem 1.5rem;
  border-radius: var(--r);
  border: 2px solid var(--navy);
  min-height: 48px;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--sm { padding: .6rem 1.1rem; font-size: .9rem; min-height: 44px; }
.btn--copper { background: var(--copper); border-color: var(--copper); }
.btn--copper:hover { background: #A66230; border-color: #A66230; }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--ghost-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost-dark:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.arrow { transition: transform .18s ease; }
.btn:hover .arrow, .tlink:hover .arrow, .cat__cta:hover .arrow { transform: translateX(3px); }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  color: var(--ink);
  font-size: .98rem;
}
.tlink:hover { color: var(--navy); }
.tlink--light { color: var(--white); }
.tlink--light:hover { color: var(--copper-lt); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.93);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 14px rgba(11,37,69,.07); }
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 46px; width: auto; }
.brand-logo--footer { height: 56px; }

.nav { display: none; margin-left: auto; gap: 1.5rem; }
.nav a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.nav a:hover { color: var(--navy); }

.header-cta { display: none; }

.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Mobile nav ---------- */
.mobile-nav {
  position: fixed;
  inset: 68px 0 auto 0;
  z-index: 49;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .8rem var(--pad) 1.4rem;
  transform: translateY(-130%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav a {
  padding: .85rem .2rem;
  font-weight: 500;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--bg-soft);
}
.mobile-nav .btn { justify-content: center; margin-top: .8rem; border-bottom: none; }
.mobile-nav .tlink-call {
  text-align: center;
  font-weight: 600;
  color: var(--navy);
  padding-top: 1rem;
  border-bottom: none;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.2rem, 6vw, 4rem) 0 clamp(1.4rem, 4vw, 2.4rem); }
.hero .wrap { display: grid; gap: clamp(1.8rem, 5vw, 3rem); }
.hero__intro { min-width: 0; }
.hero__lead { margin-top: 1.05rem; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.3rem;
  margin-top: 1.7rem;
}
.hero__note {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
  margin-top: 1.7rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--steel);
}
.hero__note .tick { color: var(--copper); font-weight: 700; margin-right: .25rem; }

/* ---------- Hero photo + credentials card ---------- */
.hero__art { position: relative; min-width: 0; }
.hero__photo {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.cred-card {
  margin-top: -2.4rem;
  margin-inline: auto;
  position: relative;
  width: min(94%, 420px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cred-card__head {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .95rem 1.25rem;
  background: var(--navy-deep);
  color: var(--white);
}
.cred-card__head .yr {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--copper-lt);
  line-height: 1;
  flex: none;
}
.cred-card__head b {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: .98rem;
  display: block;
}
.cred-card__head span { font-size: .78rem; color: #AFC0D4; }
.cred-card__rows { list-style: none; }
.cred-card__rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .92rem;
}
.cred-card__rows span { color: var(--steel); }
.cred-card__rows b {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: .9rem;
  color: var(--ink);
  text-align: right;
}

/* ---------- Trust strip ---------- */
.trust { background: var(--navy-deep); color: #D6DEE9; }
.trust .wrap {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding-block: 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .88rem;
}
.trust .dot { color: var(--copper-lt); margin-right: .5rem; font-size: .7rem; vertical-align: middle; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.8rem, 7vw, 5rem) 0; }
.section-head { max-width: 62ch; margin-bottom: clamp(1.7rem, 4vw, 2.4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head h2 { margin-bottom: .75rem; }

/* ---------- Service cards ---------- */
.cat-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.cat {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  border-left: 4px solid var(--navy);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  display: flex;
  flex-direction: column;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: var(--white); }
.cat__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.cat__body { padding: 1.25rem 1.35rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.cat h3 { margin-bottom: .5rem; }
.cat p { color: var(--steel); font-size: .96rem; margin-bottom: 1rem; }
.cat__cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .82rem;
  color: var(--navy);
}

/* ---------- Capability (commercial depth) ---------- */
.capability { background: var(--bg-steel); }
.cap-grid { display: grid; gap: 2rem; align-items: start; }
.cap-list { list-style: none; display: grid; gap: .7rem; margin-top: 1.4rem; }
.cap-list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: .85rem 1rem;
  font-size: .96rem;
  font-weight: 500;
}
.cap-list .ic { color: var(--copper); font-weight: 700; flex: none; margin-top: .05rem; }
.cap-aside {
  background: var(--navy-deep);
  color: #DCE6F1;
  border-radius: 14px;
  padding: 1.6rem 1.5rem;
  align-self: start;
}
.cap-aside h3 { color: var(--white); margin-bottom: .7rem; }
.cap-aside p { font-size: .96rem; color: #B9C7D8; margin-bottom: 1.1rem; }
.cap-aside .lic {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .8rem;
  color: var(--copper-lt);
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 1rem;
  width: 100%;
}

/* ---------- Projects ---------- */
.proj-grid { display: grid; grid-template-columns: 1fr; gap: .8rem; }
.proj {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r);
  border-left: 4px solid var(--copper);
  padding: 1rem 1.15rem;
}
.proj b {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 1rem;
  color: var(--ink);
}
.proj span { color: var(--steel); font-size: .9rem; display: block; }
.proj-foot {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .85rem;
  color: var(--steel);
}
.proj-foot a { color: var(--navy); font-weight: 600; text-transform: none; letter-spacing: 0; margin-left: .3rem; white-space: nowrap; }

/* ---------- About / family story ---------- */
.about { background: var(--ink); color: #E7EAEE; }
.about .eyebrow { color: var(--copper-lt); }
.about h2 { color: var(--white); }
.about-grid { display: grid; gap: 2rem; align-items: center; }
.about p { color: #BBC2CB; margin-bottom: 1rem; max-width: 60ch; }
.about__photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #2A323C;
  box-shadow: var(--shadow-lg);
}
.about-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.4rem; }

/* ---------- Why us ---------- */
.why-cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.why-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.4rem;
  border-top: 3px solid var(--navy);
}
.why-card b {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 1.05rem;
  color: var(--ink);
  display: block;
  margin-bottom: .4rem;
}
.why-card p { color: var(--steel); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact { background: var(--navy-deep); color: #DCE6F1; }
.contact .eyebrow { color: var(--copper-lt); }
.contact h2 { color: var(--white); }
.contact .lead { color: #B9C7D8; }
.contact-grid { display: grid; gap: 2.2rem; }
.contact h2 { margin-bottom: .8rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }
.contact-info {
  list-style: none;
  display: grid;
  gap: .9rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r);
  padding: 1.6rem;
  align-self: start;
}
.contact-info li {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: .8rem;
  align-items: baseline;
  font-size: 1rem;
}
.ci-label {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .74rem;
  color: #9FB2C7;
}
.contact-info a { font-weight: 600; color: var(--copper-lt); }
.contact-info a:hover { text-decoration: underline; }
.contact-info span { color: #DCE6F1; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0A1A30;
  color: #93A2B5;
  padding: clamp(2.4rem, 6vw, 3.4rem) 0 2.2rem;
}
.site-footer .wrap { display: grid; gap: 1.6rem; }
.site-footer .brand-logo--footer { background: var(--white); padding: .5rem .7rem; border-radius: 8px; }
.site-footer p { font-size: .92rem; line-height: 1.65; max-width: 46ch; }
.foot-meta { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; font-size: .82rem; color: #B7C3D2; }
.foot-links { display: flex; flex-wrap: wrap; gap: .9rem 1.6rem; }
.foot-links a { font-weight: 500; color: #C2CBD6; }
.foot-links a:hover { color: var(--copper-lt); }
.foot-legal {
  font-size: .8rem;
  color: #6B7889;
  border-top: 1px solid #1B2C44;
  padding-top: 1.4rem;
  line-height: 1.7;
}
.foot-legal a { color: #C2CBD6; text-decoration: underline; }

/* ---------- Sticky mobile bid bar ---------- */
.bidbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 48;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(11,37,69,.14);
  padding: .65rem var(--pad);
  transform: translateY(120%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.bidbar.show { transform: translateY(0); }
.bidbar span { font-size: .88rem; color: var(--steel); line-height: 1.3; }
.bidbar strong { color: var(--ink); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===================================================================
   BREAKPOINTS
   =================================================================== */
@media (min-width: 620px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .why-cards { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .trust .wrap { flex-direction: row; flex-wrap: wrap; gap: 1rem 2rem; justify-content: center; text-align: center; }
}

@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: 1.08fr .92fr; align-items: center; }
  .hero__art { order: 2; }
  .cap-grid { grid-template-columns: 1.25fr .75fr; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1.15fr .85fr; align-items: start; }
}

@media (min-width: 960px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; margin-left: .3rem; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
  .bidbar { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .why-cards { grid-template-columns: repeat(4, 1fr); }
  .proj-grid { grid-template-columns: repeat(4, 1fr); }
}
