/* H2 Hobble Creek — preview styles matching uploaded mockup screenshots */
:root {
  --red: #c82027;
  --red-deep: #ad2c34;
  /* Lighter red for dark/photo backgrounds — WCAG AA ≥4.5:1 on charcoal */
  --red-on-dark: #fca5a5; /* 8.63:1 on #211f20 */
  --ink: #211f20;
  --charcoal: #211f20;
  --charcoal-2: #2a2829;
  --steel: #636466;
  --muted: #6b6b6e;
  --line: #dcdcdc;
  --fog: #f3f3f2;
  --white: #ffffff;
  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --font: "Barlow", "Avenir Next", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - (var(--pad) * 2), var(--max));
  margin-inline: auto;
}

.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;
}

/* Skip link: full-width bar above header on focus — no logo overlap */
.skip-link {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 1rem;
  background: var(--white);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 0;
  border-bottom: 2px solid var(--red);
  border-radius: 0;
  transform: translateY(-110%);
  transition: transform 120ms ease;
}

.skip-link:focus {
  position: fixed;
  transform: translateY(0);
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

/* Push sticky header below the full-width skip bar so logo is not covered */
body:has(.skip-link:focus) {
  padding-top: 44px;
}

body:has(.skip-link:focus) .site-header {
  top: 44px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid #ececec;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 5.25rem;
  padding-block: 0.85rem;
}

.brand {
  display: block;
  width: clamp(9.5rem, 18vw, 12.5rem);
}

.brand img {
  width: 100%;
  height: auto;
}

.nav-desktop {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.nav-desktop a {
  position: relative;
  padding: 0.35rem 0.7rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-desktop a + a::before {
  content: "/";
  position: absolute;
  left: -0.05rem;
  top: 50%;
  transform: translateY(-52%) skewX(-12deg);
  color: var(--red);
  font-weight: 800;
}

.nav-desktop a[aria-current="page"] {
  color: var(--red);
}

.nav-desktop a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.1rem;
  height: 2px;
  background: var(--red);
}

.mobile-nav a[aria-current="page"] {
  color: var(--red);
}

.header-actions .btn[aria-current="page"],
.mobile-bar .btn[aria-current="page"] {
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.55);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.15rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  position: absolute;
  left: 50%;
  width: 1.45rem;
  height: 2px;
  margin-left: -0.725rem;
  background: var(--ink);
  transition: transform 160ms ease, opacity 160ms ease, top 160ms ease;
}

.menu-toggle span:nth-child(1) {
  top: 15px;
}

.menu-toggle span:nth-child(2) {
  top: 21px;
}

.menu-toggle span:nth-child(3) {
  top: 27px;
}

.site-header.is-open .menu-toggle span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.site-header.is-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .menu-toggle span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 0.9rem;
}

.mobile-nav {
  display: none;
  border-top: 1px solid #ececec;
  padding: 0.75rem 0 1rem;
}

.mobile-nav a {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid #f0f0f0;
}

.site-header.is-open .mobile-nav {
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border: 1.5px solid transparent;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

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

.btn-red:hover {
  background: #b01b21;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-wide {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  background: var(--charcoal);
  color: var(--white);
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}

.hero-with-photo {
  min-height: clamp(28rem, 72vw, 36rem);
  display: flex;
  align-items: flex-end;
}

.hero-with-photo .container {
  position: relative;
  z-index: 2;
  padding-bottom: 0.5rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(33, 31, 32, 0.88) 0%, rgba(33, 31, 32, 0.55) 48%, rgba(33, 31, 32, 0.28) 100%),
    linear-gradient(0deg, rgba(33, 31, 32, 0.72) 0%, transparent 45%);
}

.hero-eyebrow {
  margin: 0 0 1rem;
  color: var(--red-on-dark); /* 8.63:1 on charcoal #211f20; brand red was 2.88:1 */
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.4rem, 5.4vw, 4.15rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-lede {
  margin: 1.15rem 0 0;
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.6;
}

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

.hero-meta {
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

/* Photo strip / grid */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: #141314;
}

.photo-card {
  position: relative;
  min-height: clamp(14rem, 28vw, 20rem);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  overflow: hidden;
  background:
    repeating-linear-gradient(
      90deg,
      #2a2829 0 7px,
      #262425 7px 14px
    );
}

a.photo-card {
  color: var(--white);
}

a.photo-card:hover img,
a.photo-card:focus-visible img {
  transform: scale(1.03);
}

a.photo-card:hover::after,
a.photo-card:focus-visible::after {
  background: linear-gradient(180deg, transparent 25%, rgba(20, 19, 20, 0.92) 100%);
}

a.photo-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
  z-index: 1;
}

.photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 200ms ease;
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 35%, rgba(20, 19, 20, 0.82) 100%);
  pointer-events: none;
  transition: background 200ms ease;
}

.photo-card.has-photo {
  background: #1a191a;
}

.photo-card .ph-label {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-card.has-photo .ph-label {
  display: none;
}

.photo-card h3 {
  position: relative;
  z-index: 2;
  margin: 0.35rem 0 0;
  font-size: 1.15rem;
  font-weight: 750;
}

/* Sections */
.section {
  padding: clamp(3.25rem, 7vw, 5rem) 0;
}

.section-muted {
  background: var(--fog);
}

.section-dark {
  background: var(--charcoal);
  color: var(--white);
}

.section h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-intro {
  margin: 0.85rem 0 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-dark .section-intro {
  color: rgba(255, 255, 255, 0.78);
}

/* Service cards */
.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.card-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
}

.service-card .service-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #1a191a;
  overflow: hidden;
}

.service-card .service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card .service-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
  padding: 1.15rem 1.25rem 1.2rem;
}

.service-card h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 750;
  line-height: 1.25;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.link-red {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.link-red:hover {
  text-decoration: underline;
}

/* Tags */
.tag-block {
  margin-top: 2.5rem;
}

.tag-block h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--fog);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

/* Also-in-shop list (services) */
.also-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 3rem;
  margin-top: 1.75rem;
}

.also-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid #e4e4e3;
}

.also-item strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 750;
}

.also-item span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
}

/* Quote / form */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.contact-stack {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.contact-stack a[href^="mailto"] {
  color: var(--red); /* 5.69:1 on white */
}

.section-dark .contact-stack {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

/* Quote-section email on charcoal — brand red fails AA; use lighter red */
.section-dark .contact-stack a[href^="mailto"] {
  color: var(--red-on-dark); /* 8.63:1 on #211f20 */
}

.contact-stack a[href^="tel"],
.contact-stack a[href^="mailto"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  width: fit-content;
}

.quote-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.35rem;
  background: var(--charcoal-2);
  border-radius: 2px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.req {
  color: var(--red);
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-radius: 2px;
  padding: 0.85rem 0.9rem;
  background: var(--white);
  color: var(--ink);
}

.field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.upload {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 6.5rem;
  padding: 1rem;
  border: 1.5px dashed rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-size: 0.95rem;
  overflow: hidden;
}

.upload-prompt {
  pointer-events: none;
  z-index: 0;
  max-width: 100%;
  padding: 0 0.5rem;
  word-break: break-word;
}

.upload input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 16px; /* keeps the hit target usable on iOS */
}

.upload-help {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
}

.shop-note {
  margin-top: 1.25rem;
  max-width: 28rem;
  color: var(--muted);
}

/* CTA band */
.cta-band {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1.5rem;
  align-items: center;
}

.cta-band .hero-actions {
  margin-top: 0;
  justify-content: end;
}

.cta-band .hero-meta {
  margin-top: 0.85rem;
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.75rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand img {
  width: 11rem;
  height: auto;
}

.footer-contact {
  display: grid;
  gap: 0.25rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.footer-contact a[href^="tel"],
.footer-contact a[href^="mailto"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  width: fit-content;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 0.1rem;
  max-width: 36rem;
  margin-left: auto;
}

.footer-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 0.55rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-nav a + a::before {
  content: "/";
  position: absolute;
  left: -0.05rem;
  color: var(--red);
}

.disclaimer {
  margin: 1.75rem 0 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.78rem;
}

/* Portfolio placeholders */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 2rem;
}

.portfolio-card {
  position: relative;
  min-height: 16rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  overflow: hidden;
  background:
    repeating-linear-gradient(
      90deg,
      #2a2829 0 7px,
      #262425 7px 14px
    );
}

.portfolio-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.portfolio-card.has-photo {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--white);
  color: var(--ink);
  padding: 0;
  min-height: 0;
  border: 1px solid var(--line);
}

.portfolio-card.has-photo::after {
  display: none;
}

.portfolio-card.has-photo img {
  position: relative;
  inset: auto;
  width: 100%;
  height: clamp(14rem, 32vw, 20rem);
  object-fit: cover;
  flex-shrink: 0;
}

.portfolio-card.has-photo .caption {
  display: block;
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0.7rem 0.9rem 0.85rem;
  color: var(--ink);
  background: var(--white);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.35;
}

.portfolio-card .badge {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin-bottom: auto;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-card.has-photo .badge,
.portfolio-card.has-photo .ph-label {
  display: none;
}

.portfolio-card .ph-label {
  position: relative;
  z-index: 2;
}

.portfolio-card h3,
.portfolio-card p {
  position: relative;
  z-index: 2;
}

.portfolio-card h3 {
  margin: 0.35rem 0 0;
  font-size: 1.15rem;
}

.portfolio-card .caption {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.shop-exterior-missing {
  display: none !important;
}

.note-box {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--red);
  background: var(--fog);
  color: var(--muted);
}

/* Hub index */
.hub {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 0%, rgba(200, 32, 39, 0.12), transparent 28rem),
    linear-gradient(160deg, #fff, #f4f4f3);
}

.hub main {
  width: min(100% - 2rem, 52rem);
  margin: 0 auto;
  padding: 5rem 0;
}

.hub h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.hub .lede {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: 36rem;
}

.hub-links {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hub-links a {
  display: block;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.hub-links a strong {
  display: block;
  font-size: 1.1rem;
}

.hub-links a span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
}

.portfolio-card[id] {
  scroll-margin-top: 6rem;
}

/* Responsive */
@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-desktop,
  .header-actions .phone-link,
  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Mobile photo hero: white eyebrow + deeper overlay for ≥4.5:1 on photo.
     Desktop charcoal keeps --red-on-dark (#fca5a5). */
  .hero-with-photo .hero-media::after {
    background:
      linear-gradient(90deg, rgba(33, 31, 32, 0.94) 0%, rgba(33, 31, 32, 0.78) 52%, rgba(33, 31, 32, 0.62) 100%),
      linear-gradient(0deg, rgba(33, 31, 32, 0.88) 0%, rgba(33, 31, 32, 0.4) 48%);
  }

  .hero-with-photo .hero-eyebrow {
    color: #ffffff;
  }

  .mobile-bar {
    display: flex;
  }

  .card-grid.cols-4,
  .photo-strip,
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split,
  .cta-band,
  .footer-grid,
  .also-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
    margin-left: 0;
  }

  .cta-band .hero-actions {
    justify-content: start;
  }
}

@media (max-width: 640px) {
  .card-grid.cols-2,
  .card-grid.cols-4,
  .photo-strip,
  .portfolio-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .photo-card {
    min-height: 12rem;
  }
}


.form-status {
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.85rem;
  border-left: 3px solid var(--red);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  line-height: 1.45;
}

.form-status.is-error {
  border-left-color: #f0b429;
  color: #ffe8a3;
}
