/* AlbPlumbing — warm, readable, no gradient tricks */

:root {
  --ink: #15181c;
  --ink-soft: #3d4450;
  --paper: #fbf9f5;
  --paper-2: #f3efe8;
  --line: rgba(21, 24, 28, 0.12);
  --blue: #1a4d8c;
  --blue-hover: #143d70;
  --red: #a61f1f;
  --red-hover: #8c1a1a;
  --focus: #1a4d8c;
  --max: 68rem;
  --space: clamp(1rem, 3vw, 1.75rem);
  --nav-offset: 7rem;
  --tap-min: 2.75rem;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --motion-duration: 0.6s;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease-soft);
}

a:hover {
  color: var(--blue-hover);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--paper);
  z-index: 100;
}

/* ——— Sticky masthead (mobile menu anchor) ——— */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
}

/* ——— Top strip ——— */
.top-strip {
  background: var(--ink);
  color: #e8eaed;
  font-size: 0.9375rem;
  padding: max(0.45rem, env(safe-area-inset-top, 0px)) max(var(--space), env(safe-area-inset-right, 0px))
    0.45rem max(var(--space), env(safe-area-inset-left, 0px));
}

.top-strip__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.top-strip__tagline {
  flex: 1 1 12rem;
  min-width: 0;
  line-height: 1.35;
}

.top-strip__call {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0 0.35rem;
  margin: -0.35rem -0.35rem -0.35rem 0;
  border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
}

.top-strip a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.top-strip a:hover {
  text-decoration: underline;
  color: #fff;
}

@media (max-width: 520px) {
  .top-strip__tagline {
    display: none;
  }

  .top-strip__inner {
    flex-direction: row;
    justify-content: center;
    gap: 0;
  }

  .top-strip__call {
    margin: 0;
    width: 100%;
    justify-content: center;
    padding: 0.55rem 0.75rem;
    border: none;
    font-size: 1rem;
    letter-spacing: 0.01em;
  }
}

/* ——— Header ——— */
.site-header {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem max(var(--space), env(safe-area-inset-left, 0px)) 0.85rem
    max(var(--space), env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  flex: 0 1 auto;
  min-width: 0;
}

.logo-link:hover {
  opacity: 0.92;
}

.logo-link img {
  height: 48px;
  width: auto;
  max-width: min(52vw, 200px);
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 380px) {
  .logo-link img {
    height: 52px;
    max-width: min(58vw, 220px);
  }
}

@media (min-width: 480px) {
  .logo-link img {
    height: 58px;
    max-width: none;
  }
}

.logo-text {
  display: none;
}

/* Nav */
.nav-toggle {
  position: relative;
  z-index: 65;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: var(--tap-min);
  height: var(--tap-min);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-2);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 1.25rem;
  margin: 0 auto;
  background: var(--ink);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle span {
  transition: transform 0.2s, opacity 0.2s;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.nav {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--nav-offset, 7rem);
  bottom: 0;
  padding: 0.75rem max(var(--space), env(safe-area-inset-left, 0px)) calc(1rem + env(safe-area-inset-bottom, 0px))
    max(var(--space), env(safe-area-inset-right, 0px));
  background: var(--paper);
  border-top: 1px solid var(--line);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s var(--ease-smooth), opacity 0.28s var(--ease-soft);
  z-index: 55;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .nav {
    position: static;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    max-height: none;
    overflow: visible;
    background: transparent;
  }

  .nav a {
    display: block;
    min-height: 0;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
  }
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
  }
}

.nav a {
  display: flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: 0.5rem 0.85rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s var(--ease-soft), color 0.2s var(--ease-soft);
}

.nav a:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.nav a[aria-current="page"] {
  background: var(--paper-2);
  color: var(--blue);
}

.nav-cta .btn {
  width: 100%;
  min-height: var(--tap-min);
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
  .nav-cta .btn {
    width: auto;
    min-height: 0;
  }
}

.nav-cta {
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .nav-cta {
    margin-top: 0;
    margin-left: 0.35rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  min-height: var(--tap-min);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.22s var(--ease-soft),
    border-color 0.22s var(--ease-soft),
    color 0.22s var(--ease-soft),
    transform 0.22s var(--ease-soft),
    box-shadow 0.22s var(--ease-soft);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(21, 24, 28, 0.1);
  }

  .btn--primary:hover,
  .btn--red:hover {
    box-shadow: 0 8px 20px rgba(21, 24, 28, 0.14);
  }
}

@media (min-width: 768px) {
  .btn {
    min-height: 0;
  }
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.btn--primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--outline:hover {
  border-color: var(--ink-soft);
  background: var(--paper-2);
  color: var(--ink);
}

.btn--red {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn--red:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: #fff;
}

/* ——— Typography ——— */
h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  margin: 0 0 0.65rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}

.lede {
  font-size: clamp(1.05rem, 2.8vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 38rem;
}

p {
  margin: 0 0 1rem;
}

/* ——— Layout ——— */
main {
  padding-bottom: max(3rem, calc(2rem + env(safe-area-inset-bottom, 0px)));
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(var(--space), env(safe-area-inset-left, 0px));
  padding-right: max(var(--space), env(safe-area-inset-right, 0px));
}

.section {
  padding: clamp(1.75rem, 5vw, 3.5rem) 0;
}

.section--tight {
  padding: clamp(1.25rem, 4vw, 2rem) 0;
}

.section--muted {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Hero */
.hero {
  padding: clamp(1.5rem, 4vw, 3.25rem) 0;
}

.hero__grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 640px) {
  .hero__grid {
    gap: 2rem;
  }
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
  }
}

.hero__card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 10px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 2px 8px rgba(21, 24, 28, 0.06);
}

.hero__card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.hero__list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.hero__list li {
  margin-bottom: 0.35rem;
}

/* ——— Motion: hero ——— */
@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__grid > div:first-child > * {
  opacity: 0;
  animation: fade-rise var(--motion-duration) var(--ease-smooth) forwards;
}

.hero__grid > div:first-child > *:nth-child(1) {
  animation-delay: 0.05s;
}

.hero__grid > div:first-child > *:nth-child(2) {
  animation-delay: 0.12s;
}

.hero__grid > div:first-child > *:nth-child(3) {
  animation-delay: 0.2s;
}

.hero__grid > aside {
  opacity: 0;
  animation: fade-rise var(--motion-duration) 0.16s var(--ease-smooth) forwards;
}

/* ——— Motion: scroll reveals ——— */
.reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition:
    opacity var(--motion-duration) var(--ease-smooth),
    transform var(--motion-duration) var(--ease-smooth);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.cards .reveal:nth-child(1) {
  transition-delay: 0.02s;
}
.cards .reveal:nth-child(2) {
  transition-delay: 0.05s;
}
.cards .reveal:nth-child(3) {
  transition-delay: 0.08s;
}
.cards .reveal:nth-child(4) {
  transition-delay: 0.11s;
}
.cards .reveal:nth-child(5) {
  transition-delay: 0.14s;
}
.cards .reveal:nth-child(6) {
  transition-delay: 0.17s;
}
.cards .reveal:nth-child(7) {
  transition-delay: 0.2s;
}
.cards .reveal:nth-child(8) {
  transition-delay: 0.23s;
}
.cards .reveal:nth-child(9) {
  transition-delay: 0.26s;
}
.cards .reveal:nth-child(10) {
  transition-delay: 0.29s;
}
.cards .reveal:nth-child(11) {
  transition-delay: 0.32s;
}
.cards .reveal:nth-child(12) {
  transition-delay: 0.35s;
}

/* Cards grid */
.cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.35rem 1.4rem;
  transition:
    border-color 0.28s var(--ease-soft),
    box-shadow 0.28s var(--ease-soft),
    transform 0.28s var(--ease-soft);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-4px);
    border-color: rgba(21, 24, 28, 0.2);
    box-shadow: 0 10px 28px rgba(21, 24, 28, 0.08);
  }
}

.card h3 {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

/* Split */
.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .split {
    gap: 1.75rem;
  }
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

/* Lists */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.85;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
  }
}

.contact-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem 1.6rem;
  transition:
    border-color 0.28s var(--ease-soft),
    box-shadow 0.28s var(--ease-soft),
    transform 0.28s var(--ease-soft);
}

@media (hover: hover) and (pointer: fine) {
  .contact-box:hover {
    transform: translateY(-3px);
    border-color: rgba(21, 24, 28, 0.2);
    box-shadow: 0 10px 28px rgba(21, 24, 28, 0.08);
  }
}

.contact-box h2 {
  font-size: 1.25rem;
}

.contact-line {
  margin-bottom: 1.25rem;
}

.contact-line:last-child {
  margin-bottom: 0;
}

.contact-line strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-line a {
  font-size: clamp(1.05rem, 3.5vw, 1.2rem);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-line a:hover {
  color: var(--blue);
}

.form label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  margin-bottom: 1rem;
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 0;
  border-color: var(--blue);
}

.form textarea {
  min-height: 8rem;
  resize: vertical;
}

@media (max-width: 767px) {
  .form input,
  .form textarea {
    font-size: 16px;
  }
}

.form small {
  display: block;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding: 2rem max(var(--space), env(safe-area-inset-left, 0px)) max(2.5rem, env(safe-area-inset-bottom, 0px))
    max(var(--space), env(safe-area-inset-right, 0px));
  margin-top: auto;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.footer-brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0 0 0.35rem;
}

.site-footer a {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.footer-note {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Page header */
.page-head {
  padding: clamp(1.75rem, 4vw, 2.5rem) 0 0.5rem;
}

.page-head h1 {
  margin-bottom: 0.5rem;
}

/* Utility */
.stack-sm > * + * {
  margin-top: 0.5rem;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.flex-gap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (max-width: 520px) {
  .flex-gap {
    flex-direction: column;
    align-items: stretch;
  }

  .flex-gap .btn {
    width: 100%;
    justify-content: center;
  }
}

.header-spacer {
  height: 0;
}

@media (max-width: 767px) {
  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }
}

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

  .nav,
  .nav-toggle span {
    transition: none;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero__grid > div:first-child > *,
  .hero__grid > aside {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .btn,
  .card,
  .contact-box {
    transition: none !important;
  }

  @media (hover: hover) and (pointer: fine) {
    .btn:hover,
    .card:hover,
    .contact-box:hover {
      transform: none !important;
      box-shadow: none !important;
    }
  }
}

/* ——— Mobile layout ——— */
@media (max-width: 599px) {
  /* Explicit side padding on all containers — overrides env() max() */
  .wrap,
  .site-header__inner,
  .top-strip__inner,
  .site-footer__inner {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }

  /* Generous section spacing */
  .section {
    padding: 2.25rem 0;
  }

  .section--tight {
    padding: 2rem 0;
  }

  .hero {
    padding-block: 2rem 2.25rem;
  }

  /* Headings: more margin below on mobile */
  h2 {
    margin-bottom: 0.85rem;
  }

  h3 {
    margin-bottom: 0.55rem;
  }

  /* Cards: bigger gap and comfortable padding */
  .cards {
    gap: 1rem;
  }

  .card {
    padding: 1.25rem 1.2rem;
  }

  /* Hero card */
  .hero__card {
    padding: 1.25rem 1.2rem;
  }

  .hero__list li {
    margin-bottom: 0.55rem;
  }

  /* Contact boxes */
  .contact-box {
    padding: 1.4rem 1.3rem;
  }

  /* Page header top space */
  .page-head {
    padding-top: 1.75rem;
    padding-bottom: 1rem;
  }

  /* Split sections: more gap between stacked halves */
  .split {
    gap: 2rem;
  }

  /* Footer */
  .site-footer {
    padding-top: 1.75rem;
    padding-bottom: 2rem;
  }

  /* Form textarea */
  .form textarea {
    min-height: 7rem;
  }
}
