/* America's Plumber — Amprij portfolio demo
   Teal / copper / paper kinship with Amprij; trade-business CTAs */

:root {
  --teal: #0f3d3e;
  --teal-dark: #0a2c2d;
  --teal-mid: #1a5556;
  --copper: #c45c26;
  --copper-hover: #a84c1e;
  --paper: #f7f4ef;
  --paper-dark: #ebe6dc;
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(15, 61, 62, 0.12);
  --radius: 10px;
  --max: 1100px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-mid); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--copper); }
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--teal);
}
h1 { font-size: clamp(2rem, 5vw, 2.85rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.25rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--copper);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Demo banner — required on every page */
.demo-banner {
  background: var(--teal-dark);
  color: #c8d9d9;
  font-size: 0.8rem;
  text-align: center;
  padding: 0.45rem 1rem;
  line-height: 1.4;
}
.demo-banner a {
  color: #f0c9a8;
  font-weight: 600;
  text-decoration: none;
}
.demo-banner a:hover { text-decoration: underline; color: var(--white); }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--paper-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(15, 61, 62, 0.06);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--teal);
  line-height: 1.15;
}
.logo-mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
}
.nav a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--copper); }
.nav-cta {
  background: var(--copper) !important;
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--copper-hover) !important; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--teal);
  border-radius: 6px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--teal);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--paper-dark);
    box-shadow: var(--shadow);
    align-items: stretch;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.65rem 0; border-bottom: 1px solid var(--paper-dark); }
  .nav-cta { text-align: center; margin-top: 0.5rem; border: none !important; }
}

/* Sticky mobile call bar */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--copper);
  padding: 0.75rem 1rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.mobile-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}
@media (max-width: 768px) {
  .mobile-call-bar { display: block; }
  body { padding-bottom: 4.5rem; }
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section { padding: 3.5rem 0; }
.section-alt { background: var(--white); }
.section-teal {
  background: var(--teal);
  color: var(--white);
}
.section-teal h2,
.section-teal h3 { color: var(--white); }
.section-teal p { color: #d4e4e4; }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--copper);
  margin-bottom: 0.5rem;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 36em; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--copper);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--copper-hover);
  color: var(--white);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero */
.hero {
  position: relative;
  background: var(--teal-dark);
  color: var(--white);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10,44,45,0.95) 0%, rgba(10,44,45,0.75) 55%, rgba(10,44,45,0.45) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 4.5rem;
  max-width: 34rem;
}
.hero h1 { color: var(--white); }
.hero p { color: #d0e0e0; font-size: 1.15rem; }
.hero .eyebrow { color: #f0c9a8; }

/* Cards / grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .grid-3, .grid-services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-services { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 61, 62, 0.06);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.card img.card-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }
.card a.card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--copper);
}
.card a.card-link:hover { text-decoration: underline; }

.why-item {
  text-align: left;
}
.why-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--copper);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Service area strip */
.area-strip {
  background: var(--paper-dark);
  padding: 2rem 0;
  text-align: center;
}
.area-strip p { margin: 0; color: var(--muted); }
.area-strip strong { color: var(--teal); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-mid) 100%);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-band p { color: #d4e4e4; max-width: 32em; margin: 0 auto 1.5rem; }
.cta-band .btn-row { justify-content: center; }

/* Page hero (inner pages) */
.page-hero {
  background: var(--teal);
  color: var(--white);
  padding: 2.75rem 0;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-hero p { color: #d4e4e4; margin: 0; max-width: 36em; }

/* Service detail blocks */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}
.service-block:nth-child(even) { direction: rtl; }
.service-block:nth-child(even) > * { direction: ltr; }
.service-block img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 700px) {
  .service-block,
  .service-block:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .service-block img { height: 200px; }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}
.about-grid img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  max-height: 420px;
}
@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; }
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.trust-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--paper-dark);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.trust-list li::before {
  content: "✓";
  color: var(--copper);
  font-weight: 700;
  flex-shrink: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}
@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info dt {
  font-weight: 700;
  color: var(--teal);
  margin-top: 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contact-info dd { margin: 0.25rem 0 0; color: var(--muted); }
.contact-info a { font-weight: 600; text-decoration: none; color: var(--copper); }
.contact-info a:hover { text-decoration: underline; }

.form-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 61, 62, 0.06);
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--teal);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid #d4cfc6;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--paper);
  color: var(--ink);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--copper);
  outline-offset: 1px;
  border-color: var(--copper);
}
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}
.form-success {
  display: none;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.form-success.is-visible { display: block; }

/* Footer */
.site-footer {
  background: var(--teal-dark);
  color: #a8bcbc;
  padding: 2.5rem 0 2rem;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-footer a { color: #f0c9a8; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-brand .logo-mark { color: var(--white); font-size: 1.15rem; }
.footer-meta { max-width: 28em; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: #7a9494;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
