/* Bayside Plumbing — coastal service-dossier identity */

:root {
  --teal: #183b3a;
  --teal-deep: #102c2b;
  --cream: #f5f1e8;
  --charcoal: #1d2322;
  --copper: #c87542;
  --copper-dark: #a95d31;
  --mineral: #b7cdc7;
  --stone: #d8d3c9;
  --white: #ffffff;
  --muted: #6b706e;
  --line: rgba(29, 35, 34, 0.15);
  --light-line: rgba(255, 255, 255, 0.18);
  --sans: Arial, Helvetica, sans-serif;
  --shell: min(1220px, calc(100% - 64px));
  --section-space: 88px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a { color: inherit; }

button,
input,
select,
textarea { font: inherit; }

::selection {
  background: var(--copper);
  color: white;
}

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 4px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section { padding: var(--section-space) 0; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-170%);
  padding: 10px 14px;
  background: var(--charcoal);
  color: white;
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 232, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-row {
  min-height: 80px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 36px;
  align-items: center;
}

.brand {
  display: inline-grid;
  line-height: 0.88;
  text-decoration: none;
}

.brand-word {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.brand-sub {
  margin-top: 6px;
  color: var(--copper);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 30px);
}

.desktop-nav a {
  position: relative;
  color: #565c5a;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--copper);
  transition: right 160ms ease;
}

.desktop-nav a:hover::after { right: 0; }

.mobile-nav { display: none; }

/* Type */

.eyebrow {
  margin: 0 0 16px;
  color: var(--copper);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2 {
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 740px;
  font-size: clamp(4rem, 7vw, 7.25rem);
}

h1 span {
  display: block;
  color: var(--teal);
}

h2 { font-size: clamp(2.55rem, 4.6vw, 4.7rem); }

h3 {
  margin-bottom: 10px;
  font-size: 1.24rem;
  line-height: 1.15;
}

/* Buttons */

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover { transform: translateY(-2px); }

.button-copper {
  background: var(--copper);
  color: white;
}

.button-copper:hover { background: var(--copper-dark); }

.button-outline {
  border-color: var(--charcoal);
  background: transparent;
}

.button-outline:hover {
  background: var(--charcoal);
  color: white;
}

.button-light {
  background: white;
  color: var(--charcoal);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 900;
  text-underline-offset: 5px;
}

.text-link span { transition: transform 160ms ease; }
.text-link:hover span { transform: translateX(4px); }
.text-link-light { color: white; }

/* Hero */

.hero {
  padding: 56px 0 72px;
  background:
    linear-gradient(rgba(24,59,58,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,59,58,0.035) 1px, transparent 1px),
    var(--cream);
  background-size: 44px 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(500px, 1.12fr);
  gap: clamp(52px, 7vw, 96px);
  align-items: center;
}

.hero-copy { padding: 48px 0; }

.hero-lead {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.hero-meta span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.45);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-media-wrap {
  position: relative;
  padding: 0 0 44px 46px;
}

.hero-media {
  height: 610px;
  margin: 0;
  overflow: hidden;
  clip-path: polygon(7% 0, 100% 0, 100% 94%, 0 100%);
  background: var(--mineral);
}

.hero-media img { transition: transform 420ms ease; }
.hero-media:hover img { transform: scale(1.02); }

.job-ticket {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 320px;
  display: grid;
  gap: 7px;
  padding: 20px 22px;
  background: var(--teal);
  color: white;
  box-shadow: 0 18px 34px rgba(24,59,58,0.14);
}

.ticket-kicker {
  color: #e6b08d;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.job-ticket strong { font-size: 0.92rem; }

.job-ticket small {
  color: rgba(255,255,255,0.66);
  line-height: 1.45;
}

/* Intro */

.intro { background: white; }

.intro-layout {
  display: grid;
  grid-template-columns: 0.2fr 1fr;
  gap: 58px;
}

.section-index { padding-top: 4px; }

.section-index span {
  display: block;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 900;
}

.section-index small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-copy h2 { max-width: 850px; }

.intro-columns {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 52px;
  max-width: 960px;
  margin-left: auto;
}

.intro-columns p { color: var(--muted); }

.intro-columns .lead {
  color: var(--charcoal);
  font-size: 1.15rem;
}

/* Service ledger */

.services { background: var(--cream); }

.section-heading { margin-bottom: 40px; }

.split-heading {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 52px;
  align-items: end;
}

.split-heading > p { color: var(--muted); }

.service-ledger { border-top: 1px solid var(--line); }

.service-row {
  display: grid;
  grid-template-columns: 60px 1fr 220px;
  gap: 22px;
  align-items: center;
  min-height: 138px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.service-number {
  color: var(--copper);
  font-size: 0.67rem;
  font-weight: 900;
}

.service-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.service-row > a {
  justify-self: end;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 900;
  text-decoration: none;
}

.service-row > a span { margin-left: 8px; }

/* Residential + commercial */

.rescom { background: white; }
.compact-heading { max-width: 830px; }

.rescom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.sector {
  display: grid;
  min-height: 650px;
  overflow: hidden;
}

.sector-residential {
  grid-template-rows: 0.82fr 1.18fr;
  background: var(--mineral);
}

.sector-commercial {
  grid-template-rows: 1.2fr 0.8fr;
  background: var(--teal);
  color: white;
}

.sector figure {
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.sector-copy { padding: 30px; }

.sector-label {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--copper);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sector-commercial .sector-label { color: #e6b08d; }

.sector-copy h3 {
  max-width: 500px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.04em;
}

.sector-copy p { color: #52605d; }

.sector-commercial .sector-copy p { color: rgba(255,255,255,0.68); }

/* Protocol */

.protocol {
  background: var(--teal);
  color: white;
}

.protocol-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  border: 1px solid var(--light-line);
}

.protocol-intro {
  padding: 36px;
  border-right: 1px solid var(--light-line);
}

.protocol .eyebrow { color: #e6b08d; }

.protocol-intro > p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255,255,255,0.64);
}

.protocol-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.protocol-tags span {
  padding: 8px 10px;
  border: 1px solid var(--light-line);
  color: rgba(255,255,255,0.78);
  font-size: 0.68rem;
  font-weight: 800;
}

.process-panel {
  padding: 36px;
  background: var(--charcoal);
}

.process-panel h3 { font-size: clamp(1.8rem, 3vw, 2.8rem); }

.process-list {
  margin: 28px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--light-line);
}

.process-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--light-line);
}

.process-list li > span {
  color: #e6b08d;
  font-size: 0.68rem;
  font-weight: 900;
}

.process-list strong {
  display: block;
  margin-bottom: 4px;
}

.process-list p {
  margin: 0;
  color: rgba(255,255,255,0.58);
  font-size: 0.85rem;
}

/* Featured image */

.feature { background: var(--cream); }

.feature-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(52px, 8vw, 100px);
  align-items: center;
}

.feature-media {
  height: 520px;
  margin: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 92% 0, 100% 100%, 8% 100%);
}

.feature-copy p:not(.eyebrow) {
  max-width: 570px;
  color: var(--muted);
}

.feature-copy .button { margin-top: 10px; }

/* Commercial / industrial */

.commercial-support { background: var(--white); }

.commercial-layout {
  display: grid;
  grid-template-columns: 0.85fr 0.8fr 1.35fr;
  gap: 40px;
  align-items: start;
}

.commercial-heading {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
}

.section-index-large {
  color: var(--copper);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.commercial-copy { padding-top: 34px; }
.commercial-copy p { color: var(--muted); }

.commercial-copy .lead {
  color: var(--charcoal);
  font-size: 1.03rem;
}

.commercial-areas { border-top: 1px solid var(--line); }

.commercial-areas article {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.commercial-areas article > span {
  color: var(--copper);
  font-size: 0.68rem;
  font-weight: 900;
}

.commercial-areas h3 { margin-bottom: 4px; }

.commercial-areas p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* FAQ + contact */

.faq-contact { background: var(--stone); }

.faq-contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 52px;
  align-items: start;
}

.faq-list { border-top: 1px solid rgba(29,35,34,0.18); }

.faq-list article {
  padding: 19px 0;
  border-bottom: 1px solid rgba(29,35,34,0.18);
}

.faq-list h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.faq-list p {
  margin: 0;
  color: #676a66;
  font-size: 0.84rem;
}

.contact-column {
  display: grid;
  gap: 16px;
}

.contact-card {
  padding: 30px;
  background: white;
  box-shadow: 0 18px 38px rgba(29,35,34,0.07);
}

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.field label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(29,35,34,0.22);
  border-radius: 0;
  background: #fff;
  color: var(--charcoal);
}

.field input,
.field select {
  min-height: 46px;
  padding: 0 11px;
}

.field textarea {
  min-height: 126px;
  padding: 10px 11px;
  resize: vertical;
}

.business-details {
  padding: 24px;
  background: var(--teal);
  color: white;
}

.business-details .eyebrow { color: #e6b08d; }

.business-details strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.business-details address {
  display: grid;
  gap: 3px;
  margin-bottom: 14px;
  font-style: normal;
}

.business-details p {
  color: rgba(255,255,255,0.62);
  font-size: 0.84rem;
}

/* Final */

.final-cta {
  padding: 62px 0;
  background: var(--charcoal);
  color: white;
}

.final-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: end;
}

.final-cta .eyebrow { color: #e6b08d; }
.final-cta h2 { color: white; }

.final-cta p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255,255,255,0.62);
}

.final-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

/* Footer */

.site-footer {
  padding: 50px 0 24px;
  background: #111817;
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr 1fr;
  gap: 52px;
}

.footer-brand {
  display: grid;
  align-content: start;
}

.footer-brand .brand-sub { color: #e6b08d; }

.footer-brand p {
  margin: 22px 0 0;
  color: rgba(255,255,255,0.52);
  font-size: 0.82rem;
}

.footer-nav {
  display: grid;
  gap: 7px;
}

.footer-nav a,
.footer-bottom a {
  color: rgba(255,255,255,0.68);
  font-size: 0.78rem;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-bottom a:hover { color: white; }

.footer-address {
  display: grid;
  gap: 4px;
  font-style: normal;
}

.footer-address strong { margin-bottom: 7px; }

.footer-address span {
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--light-line);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255,255,255,0.42);
  font-size: 0.7rem;
}

.footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hidden-targets {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Responsive */

@media (max-width: 1100px) {
  :root { --shell: min(100% - 42px, 1000px); }

  .hero-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .commercial-layout {
    grid-template-columns: 1fr 1fr;
  }

  .commercial-areas { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root {
    --shell: calc(100% - 34px);
    --section-space: 74px;
  }

  .desktop-nav { display: none; }

  .header-row { grid-template-columns: 1fr auto; }

  .mobile-nav {
    display: block;
    border-top: 1px solid var(--line);
  }

  .mobile-nav-track {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mobile-nav-track::-webkit-scrollbar { display: none; }

  .mobile-nav a {
    flex: 0 0 auto;
    font-size: 0.67rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
  }

  .hero-grid,
  .feature-grid,
  .faq-contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy { padding-bottom: 10px; }

  .hero-media-wrap { padding-left: 0; }

  .hero-media { height: 520px; }

  .service-row {
    grid-template-columns: 48px 1fr;
  }

  .service-row > a {
    grid-column: 2;
    justify-self: start;
  }

  .rescom-grid,
  .protocol-grid {
    grid-template-columns: 1fr;
  }

  .protocol-intro {
    border-right: 0;
    border-bottom: 1px solid var(--light-line);
  }

  .commercial-layout { grid-template-columns: 1fr; }
  .commercial-areas { grid-column: auto; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-address {
    grid-column: 1 / -1;
    padding-top: 22px;
    border-top: 1px solid var(--light-line);
  }
}

@media (max-width: 700px) {
  :root {
    --shell: calc(100% - 26px);
    --section-space: 60px;
  }

  .site-header {
    position: relative;
    backdrop-filter: none;
  }

  .header-row { min-height: 72px; }

  .header-row .button {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 0.62rem;
  }

  h1 { font-size: clamp(3.1rem, 16vw, 4.9rem); }
  h2 { font-size: clamp(2.3rem, 11vw, 3.5rem); }

  .hero { padding-top: 30px; }

  .hero-media {
    height: 410px;
    clip-path: none;
  }

  .job-ticket {
    position: relative;
    max-width: none;
    margin-top: -1px;
  }

  .hero-media-wrap { padding-bottom: 0; }

  .intro-layout,
  .intro-columns,
  .split-heading,
  .commercial-heading {
    grid-template-columns: 1fr;
  }

  .intro-layout { gap: 20px; }

  .section-index {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .service-row {
    grid-template-columns: 36px 1fr;
    min-height: 0;
  }

  .sector { min-height: 560px; }

  .protocol-intro,
  .process-panel,
  .contact-card {
    padding: 26px;
  }

  .feature-media {
    height: 380px;
    clip-path: none;
  }

  .field-pair {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .final-grid { grid-template-columns: 1fr; }

  .final-actions { align-items: stretch; }
  .final-actions .button { width: 100%; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-address { grid-column: auto; }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  :root { --shell: calc(100% - 20px); }

  .brand-word { font-size: 1.14rem; }
  .hero-media { height: 350px; }

  .service-row {
    grid-template-columns: 30px 1fr;
    gap: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
