/* Harbor Plumbing — Kelt Signature (warm trade-business trust) */

:root {
  --teal-900: #0f3330;
  --teal-800: #15453f;
  --teal-700: #1b5750;
  --teal-600: #226a61;
  --copper-500: #b5703f;
  --copper-600: #9c5c30;
  --copper-100: #f3e3d3;
  --cream-50: #fbf8f3;
  --cream-100: #f4ede2;
  --ink-900: #1c1a17;
  --ink-700: #3c3833;
  --ink-500: #6b655d;
  --line: #e4dccd;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(28, 26, 23, 0.06), 0 1px 1px rgba(28, 26, 23, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 51, 48, 0.1);
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-50);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

img, svg { max-width: 100%; display: block; }

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--teal-900);
}

h1 { font-size: clamp(2.1rem, 4vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-700); }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal-900);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}

/* Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--copper-500);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--copper-500);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--copper-600); }

.btn-secondary {
  background: transparent;
  color: var(--cream-50);
  border-color: rgba(251, 248, 243, 0.55);
}
.btn-secondary:hover { background: rgba(251, 248, 243, 0.12); border-color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--teal-800);
  border-color: var(--teal-800);
}
.btn-outline:hover { background: var(--teal-800); color: #fff; }

/* ---------- Top nav ---------- */
.site-header {
  background: var(--teal-900);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--cream-100);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--copper-500);
  color: #fff;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-phone {
  color: var(--cream-100);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.95rem;
}
.nav-phone:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(251, 248, 243, 0.4);
  border-radius: var(--radius);
  color: #fff;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--teal-900);
    padding: 0.5rem 1.5rem 1.25rem;
    border-top: 1px solid rgba(251, 248, 243, 0.15);
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.75rem 0; width: 100%; }
  .nav-cta .nav-phone { display: none; }
  .site-header .nav { position: relative; flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--teal-900) 0%, var(--teal-800) 100%);
  color: var(--cream-50);
  padding: 4.5rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper-100);
  background: rgba(181, 112, 63, 0.22);
  border: 1px solid rgba(181, 112, 63, 0.45);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 { color: #fff; margin-bottom: 0.5em; }

.hero-lead {
  font-size: 1.15rem;
  color: var(--cream-100);
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.hero-photo {
  background: var(--teal-700);
  border: 1px solid rgba(251, 248, 243, 0.15);
  border-radius: var(--radius);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-100);
  font-size: 0.95rem;
  text-align: center;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

/* ---------- Trust badges ---------- */
.badge-strip {
  background: var(--cream-100);
  border-bottom: 1px solid var(--line);
}

.badge-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
}

@media (max-width: 720px) {
  .badge-row { grid-template-columns: repeat(2, 1fr); }
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--teal-800);
  font-size: 0.95rem;
}
.badge::before { content: none; }

/* ---------- Sections (generic) ---------- */
section { padding: 4.5rem 0; }

.section-intro {
  max-width: 62ch;
  margin-bottom: 2.75rem;
}

.section-intro h2 { margin-bottom: 0.4em; }
.section-intro p { color: var(--ink-500); font-size: 1.05rem; margin: 0; }

/* ---------- Services preview grid (Home) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.service-icon {
  font-size: 1.75rem;
  color: var(--copper-500);
  margin-bottom: 0.75rem;
}

.service-card h3 { margin-bottom: 0.4em; }
.service-card p { font-size: 0.95rem; margin: 0; color: var(--ink-500); }

/* ---------- Testimonial ---------- */
.testimonial-section {
  background: var(--teal-900);
  color: var(--cream-50);
}

.testimonial {
  max-width: 68ch;
  margin: 0 auto;
  text-align: center;
}

.testimonial blockquote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.45;
  margin: 0 0 1.25rem;
  color: #fff;
}

.testimonial cite {
  font-style: normal;
  color: var(--copper-100);
  font-weight: 600;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--copper-500);
  color: #fff;
  text-align: center;
}

.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.92); max-width: 50ch; margin: 0 auto 1.5rem; }

.cta-banner .btn-primary {
  background: var(--teal-900);
}
.cta-banner .btn-primary:hover { background: var(--teal-800); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-900);
  color: var(--cream-100);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(251, 248, 243, 0.15);
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-grid h3 {
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1em;
}

.footer-brand p { color: var(--cream-100); max-width: 36ch; }

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-list li { margin-bottom: 0.6em; }
.footer-list a { color: var(--cream-100); text-decoration: none; }
.footer-list a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--cream-100);
  opacity: 0.8;
  text-align: center;
}

/* ---------- Services page: alternating rows ---------- */
.service-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

.service-row:nth-child(even) {
  background: var(--cream-100);
  margin: 0 -2rem;
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
}

.service-row-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--copper-500);
  min-width: 3ch;
}

.service-row h3 { margin-bottom: 0.4em; }
.service-row p { margin: 0; color: var(--ink-700); max-width: 65ch; }

@media (max-width: 640px) {
  .service-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .service-row-number { font-size: 1.5rem; }
}

.estimate-callout {
  margin-top: 2.5rem;
  background: var(--teal-900);
  color: var(--cream-50);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  font-size: 1.05rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.estimate-callout p { margin: 0; color: var(--cream-100); }

/* ---------- Contact page ---------- */
.page-header {
  background: var(--teal-900);
  color: var(--cream-50);
  padding: 3.5rem 0;
  text-align: left;
}
.page-header h1 { color: #fff; }
.page-header p { color: var(--cream-100); max-width: 56ch; margin: 0; }

.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-form-card,
.contact-info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-form-card h2 { margin-bottom: 0.25em; }
.form-note { color: var(--ink-500); font-size: 0.9rem; margin-bottom: 1.75rem; }

.form-row { margin-bottom: 1.25rem; }

.form-row label {
  display: block;
  font-weight: 600;
  color: var(--teal-900);
  margin-bottom: 0.4em;
  font-size: 0.95rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #c9bea9;
  border-radius: var(--radius);
  background: var(--cream-50);
  color: var(--ink-900);
}

.form-row textarea { resize: vertical; min-height: 130px; }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--teal-600);
}

.form-help {
  font-size: 0.85rem;
  color: var(--ink-500);
  margin-top: 0.35em;
}

.form-submit-row {
  margin-top: 1.75rem;
}

.form-confirm-note {
  font-size: 0.9rem;
  color: var(--ink-500);
  margin-top: 0.85rem;
}

.form-success {
  display: none;
  background: var(--copper-100);
  border: 1px solid var(--copper-500);
  color: var(--teal-900);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  font-weight: 600;
}
.form-success.is-visible { display: block; }

.contact-info-card h2 { font-size: 1.15rem; margin-bottom: 1.25rem; }

.info-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.info-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: none; }

.info-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-500);
  font-weight: 700;
}

.info-value a { color: var(--teal-800); text-decoration: none; font-weight: 600; }
.info-value a:hover { text-decoration: underline; }

.map-placeholder {
  background: var(--cream-100);
  border: 1px dashed #c9bea9;
  border-radius: var(--radius);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-500);
  font-size: 0.9rem;
  padding: 1rem;
}

.emergency-note {
  background: var(--copper-100);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--teal-900);
}
