/* =========================================================
   Humphrey Crane & Rigging
   ========================================================= */
:root {
  --red: #a3000b;
  --red-dark: #7d0008;
  --red-deep: #5a0006;
  --ink: #0f1418;
  --ink-2: #1a2229;
  --yellow: #ffb81c;
  --text: #1d252b;
  --muted: #4a5660;
  --line: #dcdfe2;
  --paper: #f2f2f0;
  --font-head: "Bebas Neue", "Oswald", Impact, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 84px;
  --hazard: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--ink) 14px 28px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1; color: var(--ink); margin: 0 0 .4em; letter-spacing: .01em; }
h2 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--yellow); color: var(--ink); padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font-family: var(--font-body); font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: .95em 1.6em; border-radius: 3px; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.8); }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2a343c; }
.btn--lg { font-size: 1rem; padding: 1.05em 1.8em; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s; background: linear-gradient(180deg, rgba(15,20,24,.85) 0%, rgba(15,20,24,0) 100%); }
.site-header.is-scrolled, .solid-header .site-header { background: var(--ink); }
.topbar { background: var(--red-deep); color: rgba(255,255,255,.9); font-size: .85rem; font-weight: 500; transition: margin-top .3s; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.site-header.is-scrolled .topbar { margin-top: -34px; }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; transition: height .3s; }
.site-header.is-scrolled .nav { height: 68px; }
.nav__logo img { height: 54px; width: auto; transition: height .3s; }
.site-header.is-scrolled .nav__logo img { height: 44px; }
.nav__menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav__menu a { color: #fff; text-decoration: none; font-weight: 600; font-size: .98rem; padding: 8px 12px; }
.nav__menu ul a:hover, .nav__menu ul a[aria-current="page"] { color: var(--yellow); }
.nav__menu-cta { display: none; }
.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.08rem; }
.nav__phone svg { width: 18px; height: 18px; fill: var(--yellow); }
.nav__cta { padding: .75em 1.3em; }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1100px) { .nav__phone span { display: none; } .nav__menu a { padding: 8px 8px; } }
@media (max-width: 940px) {
  :root { --header-h: 72px; }
  .topbar__inner > span:first-child { display: none; }
  .topbar__inner { justify-content: center; }
  .nav__logo img { height: 44px; }
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
  .nav__phone { width: 44px; height: 44px; justify-content: center; border: 1px solid rgba(255,255,255,.3); border-radius: 3px; }
  .nav__menu { position: fixed; inset: 0; z-index: -1; background: var(--ink); padding: calc(var(--header-h) + 50px) 24px 32px; display: flex; flex-direction: column; gap: 24px; transform: translateY(-100%); visibility: hidden; transition: transform .3s ease, visibility 0s .3s; overflow-y: auto; }
  .nav__menu.is-open { transform: none; visibility: visible; transition: transform .3s ease; }
  .nav__menu ul { flex-direction: column; gap: 0; }
  .nav__menu ul a { display: block; font-family: var(--font-head); font-size: 2rem; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav__menu-cta { display: grid; gap: 12px; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(90vh, 840px); display: flex; align-items: flex-end; color: #fff; background: var(--ink); padding: calc(var(--header-h) + 80px) 0 clamp(56px, 8vw, 96px); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,20,24,.85) 0%, rgba(15,20,24,.45) 55%, rgba(15,20,24,0) 100%); }
.hero__content { position: relative; }
.hero h1 { color: #fff; font-size: clamp(3.2rem, 8vw, 6.5rem); margin-bottom: .2em; line-height: .92; }
.hero__lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); max-width: 32rem; color: rgba(255,255,255,.92); margin-bottom: 1.8rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) {
  .hero { min-height: 0; }
  .hero__img { object-position: 30% center; }
  .hero__overlay { background: linear-gradient(180deg, rgba(15,20,24,.5) 0%, rgba(15,20,24,.88) 70%); }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
}

/* ---------- Points strip ---------- */
.points { background: var(--yellow); color: var(--ink); }
.points ul { list-style: none; margin: 0 auto; padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.points li { font-family: var(--font-head); font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: .02em; line-height: 1.1; }
@media (max-width: 700px) { .points ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.about__text a { font-weight: 600; }
.about__photo { margin: 0; }
.about__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about__photo figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } }

/* ---------- Rentals ---------- */
.rentals { background: var(--ink); color: rgba(255,255,255,.82); }
.rentals__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.rentals h2 { color: #fff; }
.rentals__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.rentals .btn { margin-top: .6rem; }
@media (max-width: 900px) { .rentals__grid { grid-template-columns: 1fr; } .rentals__photo img { aspect-ratio: 4 / 3; } }

/* ---------- Work gallery ---------- */
.work__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.work__head h2 { margin: 0; }
.work__head p { margin: 0; color: var(--muted); }
.work__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 8px; }
.shot { padding: 0; border: 0; cursor: zoom-in; overflow: hidden; background: var(--ink); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot:hover img { opacity: .9; }
.shot--tall { grid-row: span 2; }
.shot--wide { grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px) { .work__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; } }
@media (max-width: 480px) { .work__grid { grid-auto-rows: 140px; gap: 6px; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: none; width: min(1100px, 94vw); overflow: visible; }
.lightbox::backdrop { background: rgba(8,11,13,.92); }
.lightbox img { max-height: 84vh; width: auto; max-width: 100%; margin: 0 auto; }
.lightbox__close { position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff; font: 700 .9rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: #fff; color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.lightbox__nav--prev { left: 0; } .lightbox__nav--next { right: 0; }
@media (min-width: 1200px) { .lightbox__nav--prev { left: -60px; } .lightbox__nav--next { right: -60px; } }

/* ---------- Testimonials ---------- */
.reviews { background: var(--red); color: #fff; }
.reviews h2 { color: #fff; }
.reviews__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); margin-top: 12px; }
.review { margin: 0; border-left: 4px solid var(--yellow); padding-left: 24px; }
.review blockquote { margin: 0 0 12px; }
.review blockquote p { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.55; margin: 0; }
.review figcaption { font-weight: 700; }
@media (max-width: 820px) { .reviews__grid { grid-template-columns: 1fr; } }

/* ---------- Service area ---------- */
.areas__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.towns { columns: 3 120px; column-gap: 16px; list-style: none; padding: 20px 0 0; margin: 8px 0 0; border-top: 2px solid var(--ink); }
.towns li { padding: 3px 0; break-inside: avoid; font-size: .97rem; }
.map { aspect-ratio: 4 / 5; background: var(--paper); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 900px) { .areas__grid { grid-template-columns: 1fr; } .map { aspect-ratio: 4 / 3; } }

/* ---------- Call band ---------- */
.cta-band { background: var(--yellow); color: var(--ink); padding: clamp(36px, 5vw, 56px) 0 calc(clamp(36px, 5vw, 56px) + 12px); position: relative; }
.cta-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--hazard); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.cta-band h2 a { color: inherit; text-decoration: none; white-space: nowrap; }
.cta-band__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) { .cta-band__ctas { width: 100%; flex-direction: column; } .cta-band__ctas .btn { width: 100%; } }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__phone { display: inline-block; text-decoration: none; color: var(--red); margin: 6px 0 16px; font-family: var(--font-head); font-size: clamp(2.4rem, 4.4vw, 3.2rem); line-height: 1; }
.contact__phone:hover { color: var(--red-dark); }
.contact__details { list-style: none; padding: 0; margin: 0 0 24px; }
.contact__details li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-map { aspect-ratio: 16 / 10; background: var(--paper); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.estimate-form { background: var(--paper); padding: clamp(22px, 4vw, 36px); display: grid; gap: 16px; border-top: 4px solid var(--red); }
.estimate-form h3 { font-size: 2rem; margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin: 0; min-width: 0; }
.field > span { font-weight: 700; font-size: .92rem; color: var(--ink); }
.req { color: var(--red); }
.field input, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); width: 100%; padding: 11px 13px; border: 1px solid #c4c8cc; border-radius: 3px; background: #fff; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 2px var(--yellow); }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; padding: 12px 16px; font-weight: 600; }
.form-status.ok { background: #e7f5ea; color: #1b5e20; }
.form-status.err { background: #fdecea; color: var(--red-dark); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { color: #fff; padding: calc(var(--header-h) + 34px + clamp(48px, 7vw, 90px)) 0 clamp(48px, 7vw, 80px); background: linear-gradient(90deg, rgba(15,20,24,.9) 0%, rgba(15,20,24,.55) 60%, rgba(15,20,24,.2) 100%), var(--hero-img) center 40%/cover; }
.page-hero h1 { color: #fff; font-size: clamp(3rem, 7vw, 5.25rem); margin-bottom: .15em; }
.page-hero p { font-size: 1.2rem; color: rgba(255,255,255,.9); max-width: 36rem; margin: 0; }

/* ---------- Message pages ---------- */
.message-page { padding: calc(var(--header-h) + 34px + 90px) 0 110px; }
.message-page .container { max-width: 640px; }
.message-page h1 { font-size: clamp(2.8rem, 6vw, 4.4rem); }
.message-page p { font-size: 1.15rem; color: var(--muted); }
.message-page .hero__ctas { margin-top: 28px; }
.message-page .btn--ghost { color: var(--ink); border-color: var(--ink); }
.message-page .btn--ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding-top: 64px; font-size: .98rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer__brand img { width: 210px; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: 1.4rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .btn, .site-footer .btn:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .85rem; }
.footer__bottom p { margin: 0; }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Mobile action bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 700px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0 0; z-index: 90; padding-bottom: env(safe-area-inset-bottom); background: var(--ink); transform: translateY(100%); transition: transform .3s; }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; text-decoration: none; color: #fff; font-size: .95rem; }
  .mobile-bar svg { width: 18px; height: 18px; fill: var(--yellow); }
  .mobile-bar__quote { background: var(--red); }
  body { padding-bottom: 56px; }
}
