/* ===== Hermitage Rapid Plumbing — demo site shared styles ===== */

:root {
  --green: #1E4034;
  --green-dark: #142B23;
  --cream: #F5F1E8;
  --brass: #B08428;
  --brass-dark: #8F6A1E;
  --ink: #1A1D21;
  --white: #FFFFFF;
  --hairline: #DDD6C6;
  --red: #A8322A;

  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 6px;
  --nav-h: 76px;
  --bar-h: 58px;
  --max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  padding-bottom: var(--bar-h);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 0.4em;
}

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-dark);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 60px 0; }
.section--tight { padding: 36px 0; }

@media (min-width: 860px) {
  .section { padding: 92px 0; }
}

button, input, select { font-family: inherit; }

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

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 14px 26px;
  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--brass { background: var(--brass); color: var(--white); }
.btn--brass:hover { background: var(--brass-dark); }

.btn--outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn--outline:hover { background: rgba(255,255,255,0.14); }

.btn--outline-green {
  background: transparent;
  border-color: var(--green);
  color: var(--green);
}
.btn--outline-green:hover { background: var(--green); color: var(--white); }

.btn--block { width: 100%; }

/* ===== Top nav ===== */

.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green);
  border-bottom: 3px solid var(--brass);
}

.topnav .wrap {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.topnav__brandblock {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.topnav__brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
}

.topnav__area {
  font-size: 0.72rem;
  color: rgba(245,241,232,0.7);
  letter-spacing: 0.03em;
  font-weight: 500;
}

.topnav__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topnav__links {
  display: none;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topnav__links a {
  color: rgba(245,241,232,0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.topnav__links a:hover,
.topnav__links a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--brass);
}

@media (min-width: 780px) {
  .topnav__links { display: flex; }
}

.topnav__call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brass);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.topnav__call:hover { background: var(--brass-dark); }

.topnav__toggle {
  display: inline-flex;
  background: none;
  border: 1px solid rgba(245,241,232,0.4);
  color: var(--white);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}
@media (min-width: 780px) {
  .topnav__toggle { display: none; }
}

.topnav__mobilelinks {
  display: none;
  flex-direction: column;
  background: var(--green-dark);
}
.topnav__mobilelinks.is-open { display: flex; }
.topnav__mobilelinks a {
  color: rgba(245,241,232,0.92);
  text-decoration: none;
  font-weight: 600;
  padding: 14px 20px;
  border-top: 1px solid rgba(245,241,232,0.1);
}
.topnav__mobilelinks a[aria-current="page"] { color: var(--brass); }

@media (min-width: 780px) {
  .topnav__mobilelinks { display: none !important; }
}

/* ===== Sticky bottom call bar (mobile only) ===== */

.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  height: var(--bar-h);
  background: var(--red);
  border-top: 2px solid rgba(255,255,255,0.25);
}

.callbar a {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@media (min-width: 780px) {
  .callbar { display: none; }
  body { padding-bottom: 0; }
}

/* ===== Hero ===== */

.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--white);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green);
  opacity: 0.65;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 76px 0 52px;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.1rem, 6.5vw, 3.6rem);
  max-width: 16ch;
  margin-bottom: 0.25em;
}

.hero p {
  font-family: var(--font-body);
  text-transform: none;
  font-size: 1.15rem;
  max-width: 48ch;
  color: rgba(255,255,255,0.94);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero--page { min-height: 320px; }

/* ===== Emergency strip ===== */

.emergency {
  background: var(--red);
  color: var(--white);
}

.emergency .wrap {
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.emergency p {
  margin: 0;
  font-weight: 600;
  font-size: 1.02rem;
}

.emergency a.btn {
  background: var(--white);
  color: var(--red);
  padding: 8px 18px;
  font-size: 0.95rem;
}
.emergency a.btn:hover { background: var(--cream); }

/* ===== Section head ===== */

.section-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head .eyebrow { display: block; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); color: var(--green); }

/* ===== Services preview grid (home) ===== */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  display: block;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s ease, transform 0.1s ease;
}
.service-card:hover {
  border-color: var(--brass);
  transform: translateY(-2px);
}
.service-card h3 {
  color: var(--green);
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.service-card p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.85;
}
.service-card__arrow {
  display: inline-block;
  margin-top: 12px;
  color: var(--brass-dark);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== Why us ===== */

.whyus {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 860px) {
  .whyus { grid-template-columns: 1fr 1.1fr; gap: 48px; }
}

.whyus__img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (min-width: 860px) {
  .whyus__img { height: 100%; min-height: 380px; }
}

.whyus__points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 500px) {
  .whyus__points { grid-template-columns: 1fr 1fr; }
}

.whyus__point {
  border-left: 3px solid var(--brass);
  padding-left: 16px;
}
.whyus__point h4 {
  color: var(--green);
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.whyus__point p { margin: 0; font-size: 0.94rem; opacity: 0.85; }

/* ===== Reviews ===== */

.reviews {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 780px) {
  .reviews { grid-template-columns: repeat(3, 1fr); }
}

.review {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px;
}
.review__stars {
  color: var(--brass);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-size: 1rem;
}
.review p.review__quote {
  font-style: italic;
  margin-bottom: 14px;
}
.review__who {
  font-weight: 600;
  color: var(--green);
  font-size: 0.9rem;
  text-transform: none;
}

/* ===== CTA band ===== */

.cta-band {
  background: var(--green);
  color: var(--white);
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  margin-bottom: 8px;
}
.cta-band p {
  color: rgba(245,241,232,0.8);
  text-transform: none;
  font-family: var(--font-body);
  max-width: 46ch;
  margin: 0 auto 28px;
}
.cta-band__phone {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  color: var(--brass);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.cta-band__phone:hover { color: var(--white); }
.cta-band__hint {
  margin-top: 10px;
  font-size: 0.85rem;
  color: rgba(245,241,232,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
}

/* ===== Service detail list (services page) ===== */

.service-detail {
  border-top: 1px solid var(--hairline);
  padding: 34px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.service-detail:last-child { border-bottom: 1px solid var(--hairline); }

@media (min-width: 780px) {
  .service-detail { grid-template-columns: 260px 1fr; gap: 40px; }
}

.service-detail h3 {
  color: var(--green);
  font-size: 1.6rem;
  margin-bottom: 0;
}

.service-detail__body ul {
  margin: 14px 0 0;
  padding-left: 20px;
}
.service-detail__body li { margin-bottom: 6px; }

/* ===== Service area ===== */

.areas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .areas { grid-template-columns: repeat(4, 1fr); }
}
.area-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.area-card__town {
  color: var(--green);
  font-family: var(--font-head);
  font-size: 1.2rem;
  text-transform: uppercase;
  display: block;
}
.area-card__zip {
  font-size: 0.85rem;
  opacity: 0.7;
  letter-spacing: 0.03em;
}

/* ===== Owner section ===== */

.owner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 780px) {
  .owner { grid-template-columns: 280px 1fr; }
}
.owner__img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
@media (min-width: 780px) {
  .owner__img { height: 100%; min-height: 320px; }
}
.owner__body { padding: 28px 30px; }
.owner__body h3 { color: var(--green); font-size: 1.5rem; }
.owner__body .eyebrow { display: block; margin-bottom: 8px; }
.owner__body p { text-transform: none; font-size: 1rem; opacity: 0.9; }

/* ===== Photo band (services van section) ===== */

.photo-band {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
  isolation: isolate;
}
.photo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green-dark);
  opacity: 0.6;
  z-index: 0;
}
.photo-band__inner {
  position: relative;
  z-index: 1;
  padding: 40px;
  max-width: 46ch;
}
.photo-band__inner .eyebrow { color: var(--brass); display: block; margin-bottom: 8px; }
.photo-band__inner h3 { color: var(--white); font-size: 1.8rem; margin-bottom: 10px; }
.photo-band__inner p { text-transform: none; color: rgba(255,255,255,0.9); margin: 0; }

/* ===== Contact page ===== */

.callblock {
  background: var(--green);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--white);
}
.callblock .eyebrow { color: var(--brass); display: block; margin-bottom: 10px; }
.callblock h2 { color: var(--white); font-size: clamp(1.6rem, 5vw, 2.2rem); margin-bottom: 16px; }
.callblock__phone {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.4rem, 9vw, 3.8rem);
  color: var(--brass);
  text-decoration: none;
}
.callblock__phone:hover { color: var(--cream); }
.callblock__sub {
  text-transform: none;
  font-family: var(--font-body);
  color: rgba(245,241,232,0.75);
  margin-top: 14px;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field--full { grid-column: 1 / -1; }
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.field input, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--cream);
  font-size: 1rem;
  color: var(--ink);
}
.field input:focus, .field select:focus { border-color: var(--brass); }

.form-note {
  margin-top: 16px;
  font-size: 0.9rem;
  opacity: 0.7;
}

.form-success {
  display: none;
  background: rgba(30,64,52,0.08);
  border: 1px solid rgba(30,64,52,0.3);
  color: var(--green);
  padding: 16px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  margin-top: 20px;
}
.form-success.is-visible { display: block; }

.notice {
  background: rgba(168,50,42,0.08);
  border: 1px solid rgba(168,50,42,0.3);
  border-radius: var(--radius);
  padding: 18px 22px;
  color: var(--red);
  font-weight: 500;
}
.notice strong { font-weight: 700; }

.hours-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hours-card .eyebrow { display: block; margin-bottom: 6px; }
.hours-card h3 { color: var(--green); margin: 0; }

/* ===== Footer ===== */

.footer {
  background: var(--green-dark);
  color: rgba(245,241,232,0.75);
  padding: 40px 0 26px;
  font-size: 0.9rem;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(245,241,232,0.15);
  margin-bottom: 20px;
}

.footer__brand {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
  font-size: 1.2rem;
  text-transform: uppercase;
}

.footer__col h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.footer__col p, .footer__col a {
  display: block;
  text-decoration: none;
  margin: 0 0 4px;
  color: rgba(245,241,232,0.75);
}
.footer__col a:hover { color: var(--brass); }

.footer__links {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.footer__links a { color: rgba(245,241,232,0.75); text-decoration: none; }
.footer__links a:hover { color: var(--brass); }

.footer__bottom {
  opacity: 0.55;
  font-size: 0.82rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .service-card, .callblock__phone, .cta-band__phone {
    transition: none !important;
  }
}
