/* Crown Plumbing — proposal build. Design direction: workshop-green. */

:root {
  --teal: #0f4c5c;
  --teal-dark: #0a333f;
  --coral: #e36414;
  --off-white: #fdf6f0;
  --text: #1a1a17;
  --banner-h: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--banner-h);
  background: var(--off-white);
  background-image:
    radial-gradient(rgba(15, 76, 92, 0.035) 1px, transparent 1px);
  background-size: 9px 9px;
  color: var(--text);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--teal-dark);
}

a {
  color: var(--teal);
  text-decoration-color: var(--coral);
}

a:hover,
a:focus {
  text-decoration-thickness: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ---------- Proposal banner (fixed, unremovable, not part of site design) ---------- */

.preview-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #141414;
  color: #fdf6f0;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: clamp(11px, 2.6vw, 13px);
  line-height: 1.35;
  padding: 9px 12px;
}

/* ---------- Watermark (light, sparse, non-interactive) ---------- */

.watermark {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

.watermark span {
  display: block;
  font-family: Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 4.5rem);
  letter-spacing: 0.08em;
  color: #6b6b6b;
  opacity: 0.06;
  transform: rotate(-30deg);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: var(--banner-h);
  z-index: 500;
  background: var(--off-white);
  border-bottom: 1px solid rgba(15, 76, 92, 0.12);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--teal-dark);
  text-decoration: none;
  margin-right: auto;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--teal-dark);
  background: var(--off-white);
  border: 2px solid var(--coral);
  border-radius: 10px;
  padding: 8px 14px;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 36px;
  background: transparent;
  border: 1px solid rgba(15, 76, 92, 0.3);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--teal-dark);
}

.primary-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.primary-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}

.primary-nav a:hover,
.primary-nav a:focus {
  border-bottom-color: var(--coral);
}

.primary-nav a[aria-current="page"] {
  color: var(--teal-dark);
  border-bottom-color: var(--teal);
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    display: none;
    flex-direction: column;
    gap: 4px;
    order: 3;
    padding-top: 10px;
    border-top: 1px solid rgba(15, 76, 92, 0.12);
    margin-top: 8px;
  }

  .primary-nav.open {
    display: flex;
  }

  .header-inner {
    position: relative;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #123b48 0%, #0f4c5c 45%, #082830 100%);
  color: var(--off-white);
  text-align: center;
  padding: 72px 20px 64px;
  border-radius: 0 0 28px 28px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--off-white);
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  margin: 0 0 16px;
}

.hero p {
  font-size: 1.15rem;
  margin: 0 auto 30px;
  max-width: 520px;
}

.cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-accent {
  background: var(--off-white);
  color: var(--teal-dark);
  border-color: var(--coral);
}

.btn-primary {
  background: var(--off-white);
  color: var(--teal-dark);
  border-color: var(--off-white);
}

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

/* ---------- Layout ---------- */

main {
  display: block;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 48px 0;
}

section + section {
  border-top: 1px solid rgba(15, 76, 92, 0.1);
}

.page-header {
  padding: 56px 0 12px;
}

.page-header h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  margin: 0 0 10px;
}

.lede {
  font-size: 1.1rem;
  color: var(--teal-dark);
}

/* ---------- Services list ---------- */

.service-list {
  list-style: none;
  margin: 32px 0;
  padding: 0;
  counter-reset: service;
}

.service-item {
  counter-increment: service;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 0;
}

.service-item + .service-item {
  border-top: 1px solid rgba(15, 76, 92, 0.12);
}

.service-item::before {
  content: counter(service);
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--coral);
  color: var(--teal-dark);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-item h2 {
  font-size: 1.2rem;
  margin: 4px 0 6px;
}

.service-item p {
  margin: 0;
}

/* ---------- Cards / notices ---------- */

.card {
  background: #fff;
  border: 1px solid rgba(15, 76, 92, 0.12);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
}

.placeholder {
  color: var(--teal-dark);
  background: rgba(227, 100, 20, 0.12);
  border-radius: 6px;
  padding: 1px 6px;
  font-weight: 600;
}

blockquote.sourced {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--coral);
  background: #fff;
  border-radius: 0 12px 12px 0;
  font-style: italic;
}

blockquote.sourced footer {
  margin-top: 10px;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--teal-dark);
}

/* ---------- Contact form ---------- */

.contact-form {
  margin: 24px 0;
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--teal-dark);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(15, 76, 92, 0.3);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--text);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 3px solid rgba(227, 100, 20, 0.4);
  border-color: var(--coral);
}

.form-row.has-error input,
.form-row.has-error textarea {
  border-color: #b3261e;
}

.field-error {
  display: none;
  color: #b3261e;
  font-size: 0.9rem;
  margin-top: 6px;
}

.form-row.has-error .field-error {
  display: block;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.form-note {
  font-size: 0.9rem;
  color: var(--teal-dark);
}

.form-success {
  display: none;
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(15, 76, 92, 0.08);
  border: 1px solid rgba(15, 76, 92, 0.25);
}

.form-success.visible {
  display: block;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--teal-dark);
  color: var(--off-white);
  margin-top: 40px;
  border-radius: 28px 28px 0 0;
}

.footer-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px 32px;
}

.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-nav a {
  color: var(--off-white);
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-inner p {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.footer-inner a {
  color: var(--off-white);
  text-decoration-color: var(--coral);
}

.footer-proposal {
  font-size: 0.85rem;
  opacity: 0.85;
}

.footer-copyright {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 0;
}
