/* JET Signs, LLC — landing page styles */

:root {
  --ink: #141c24;
  --steel: #1f2a35;
  --steel-2: #2a3845;
  --text: #2b3440;
  --muted: #5d6874;
  --line: #e3e7eb;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --accent: #FB6606;        /* logo orange: buttons, badges, icons */
  --accent-dark: #D95100;   /* hover */
  --accent-text: #C44A00;   /* small orange text on light backgrounds (readable contrast) */
  --amber: #f5a524;
  --silver-1: #f4f6f8;
  --silver-2: #aab4bf;
  --silver-3: #d7dde3;
  --brand-navy: #072B56;
  --brand-orange: #FB6606;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 28, 36, .06), 0 8px 24px rgba(20, 28, 36, .08);
  --container: 1120px;
  --gutter: 20px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; } /* header height */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 .4em;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.4rem, 4.8vw, 3.5rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.75rem; }
p { margin: 0 0 1em; }

a { color: var(--accent-text); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 6px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  padding: .7em 1.4em; border-radius: 6px; border: 2px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-sm { font-size: 1rem; padding: .45em 1em; }
.btn-block { width: 100%; margin-top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(7, 43, 86, .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand-logo img { height: 46px; width: auto; display: block; }
@media (max-width: 760px) { .brand-logo img { height: 38px; } }

.brand { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; }
.brand-mark {
  font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; letter-spacing: .06em;
  color: #fff; background: var(--accent); padding: 0 .3em; border-radius: 4px; line-height: 1.15;
}
.brand-text { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--silver-3); letter-spacing: .03em; }

.nav-menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-menu a:not(.btn) {
  color: var(--brand-navy); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.nav-menu a:not(.btn):hover { color: var(--brand-orange); }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer; padding: 0;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 24px; height: 2px; background: var(--brand-navy); border-radius: 2px; content: ""; position: relative;
    transition: transform .2s, opacity .2s;
  }
  .nav-toggle-bar::before { position: absolute; top: -7px; }
  .nav-toggle-bar::after { position: absolute; top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(7, 43, 86, .08);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-menu .btn { margin-top: 16px; width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: var(--silver-3);
  padding: clamp(28px, 3.5vw, 52px) 0 clamp(48px, 7vw, 92px);
  background-color: var(--ink);
}
/* Street photo with a JET sign; the photo's own sign is the hero visual */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("../img/hero-bg.jpg?h=dd216450");
  background-size: cover; background-position: 70% 55%; background-repeat: no-repeat;
}
@supports (background-image: image-set(url("../img/hero-bg.webp?h=77cb4476") type("image/webp"))) {
  .hero::before {
    background-image: image-set(url("../img/hero-bg.webp?h=77cb4476") type("image/webp"),
                                url("../img/hero-bg.jpg?h=dd216450") type("image/jpeg"));
  }
}
/* Dark on the left for the headline, clear on the right so the sign reads */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20,28,36,.92) 0%, rgba(20,28,36,.78) 32%, rgba(20,28,36,.25) 58%, rgba(20,28,36,0) 78%),
    linear-gradient(180deg, rgba(20,28,36,.35) 0%, rgba(20,28,36,0) 40%, rgba(20,28,36,.2) 100%);
}
.hero > * { position: relative; z-index: 1; }

.hero-inner {
  display: grid; grid-template-columns: minmax(0, 470px); align-items: center;
  min-height: clamp(360px, 36vw, 540px);
}
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.1rem; max-width: 34em; color: #d4dae0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.eyebrow {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  font-size: .95rem; color: var(--amber); margin-bottom: 14px;
}
.eyebrow-dark { color: var(--accent-text); }

/* Phones and small tablets: text on the dark top, the photo (with its sign) below it.
   The photo is sized to the screen width and anchored at the bottom. */
@media (max-width: 900px) {
  .hero { padding-bottom: calc(var(--hero-photo-w) / 2.36 - 24px); }
  .hero-inner { min-height: 0; }
  .hero::before { background-size: var(--hero-photo-w) auto; background-position: 78% 100%; }
  .hero::after {
    background: linear-gradient(180deg, rgba(20,28,36,1) 0%, rgba(20,28,36,.96) calc(100% - var(--hero-photo-w) / 2.36 - 10px), rgba(20,28,36,.25) calc(100% - var(--hero-photo-w) / 2.36 + 90px), rgba(20,28,36,0) 85%);
  }
}
@media (max-width: 900px) { .hero { --hero-photo-w: 150vw; } }
@media (max-width: 600px) { .hero { --hero-photo-w: 215vw; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: #c6ced6; }
.section-dark h2 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 44px; }
/* Gallery and Rentals share the same background: tighten the seam between them */
#gallery { padding-bottom: clamp(28px, 3.5vw, 44px); }
#rentals { padding-top: clamp(28px, 3.5vw, 44px); }
/* Nav links: land each section's heading ~28px below the header, regardless of
   the section's own top padding (negative margin cancels the padding). */
.section[id] { scroll-margin-top: calc(28px - clamp(64px, 9vw, 104px)); }
#rentals { scroll-margin-top: calc(28px - clamp(28px, 3.5vw, 44px)); }
.section-lead { font-size: 1.1rem; color: var(--muted); }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 820px) { .product-grid { grid-template-columns: 1fr; } }

.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.product-media { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 20px; }
.product-media svg { width: 100%; height: 100%; }
/* Cards with a photo: the image fills a fixed 16:10 box, so both cards' images
   line up top and bottom whatever the photo's own proportions are. */
.product-media:has(img) { padding: 0; display: block; position: relative; overflow: hidden; }
.product-media:has(img) picture { position: absolute; inset: 0; display: block; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder { background: var(--bg-alt); padding: 16px; }
.photo-placeholder {
  width: 100%; height: 100%; border: 1.5px dashed #c9d1d9; border-radius: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: #9aa4ae; font-size: .85rem; letter-spacing: .04em;
}
.photo-placeholder svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.product-body { padding: 28px 28px 30px; flex: 1; display: flex; flex-direction: column; }
.product-body .specs { margin-top: auto; }
.product-body > p:last-of-type { margin-bottom: 20px; }
.product-tag {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent-text); margin-top: -4px;
}
.specs {
  list-style: none; padding: 0; margin: 20px 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.specs li { background: #fff; padding: 12px 14px; display: flex; flex-direction: column; }
.specs span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.specs strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); font-weight: 700; }

/* ---------- Rental plans ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); position: relative;
}
.plan p { color: var(--muted); margin: 0; }
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 999px; box-shadow: 0 4px 10px rgba(251, 102, 6, .3);
}
@media (max-width: 900px) {
  .plan-grid { gap: 16px; }
  .plan { padding: 26px 18px 22px; }
}
@media (max-width: 640px) {
  .plan-grid { grid-template-columns: 1fr; gap: 28px; }
}
.plan-icon {
  width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(251, 102, 6, .1); margin-bottom: 18px;
}
.plan-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps {
  list-style: none; counter-reset: step; padding: 0; margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 900px) { .steps { gap: 16px; } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; gap: 28px; } }
.steps li {
  counter-increment: step; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 4px; max-width: 300px; margin: 0 auto;
}
.steps li::before {
  content: counter(step); margin-bottom: 10px;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: #fff; background: var(--ink);
}
.steps strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); line-height: 1.2; }
.steps span { color: var(--muted); font-size: .98rem; }

/* ---------- Gallery (auto-scrolling row + lightbox) ---------- */
.marquee {
  overflow: hidden; position: relative;
  padding: 4px 0 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee { cursor: grab; touch-action: pan-y; }
.marquee.dragging { cursor: grabbing; }
.marquee-track { display: flex; gap: 16px; width: max-content; will-change: transform; }

.gallery-hint {
  display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 18px 0 0;
}
.hint-item {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: .95rem; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow);
}
.hint-item svg {
  width: 18px; height: 18px; flex: 0 0 auto;
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.shot {
  flex: 0 0 auto; width: clamp(240px, 32vw, 380px);
  padding: 0; border: 0; border-radius: var(--radius); overflow: hidden;
  cursor: inherit;                 /* keep the grab/grabbing cursor from .marquee */
  background: #dfe4e9; box-shadow: var(--shadow); line-height: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
/* Stop the browser's own image drag-and-drop from hijacking the swipe */
.marquee, .marquee * { user-select: none; -webkit-user-select: none; }
.shot img { -webkit-user-drag: none; pointer-events: none; }
.shot { position: relative; }
.shot img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
/* Zoom badge so it's clear each photo opens larger */
.shot::after {
  content: ""; position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(20, 28, 36, .72) center / 20px 20px no-repeat;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.6-3.6'/><path d='M11 8.5v5M8.5 11h5'/></svg>");
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  transition: transform .2s ease, background-color .2s ease;
}
.shot:hover::after, .shot:focus-visible::after { transform: scale(1.12); background-color: var(--accent); }
.shot:hover, .shot:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(20,28,36,.18); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 14, 18, .92);
  display: grid; place-items: center; padding: 24px;
  animation: lb-in .18s ease-out;
}
.lightbox[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { margin: 0; max-width: min(1200px, 92vw); text-align: center; }
.lb-figure img {
  max-width: 100%; max-height: 78vh; width: auto; height: auto; margin: 0 auto;
  border-radius: 6px; box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.lb-figure figcaption {
  color: #d7dde3; font-size: .95rem; margin-top: 14px; padding: 0 8px;
}
.lb-btn {
  position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1;
  display: grid; place-items: center; transition: background-color .15s;
}
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 20px; right: 20px; font-size: 2rem; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-figure img { max-height: 68vh; }
}

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: center; }
@media (max-width: 760px) { .about-inner { grid-template-columns: 1fr; gap: 24px; } }
.about-stat { display: flex; flex-direction: column; align-items: flex-start; }
.stat-num {
  font-family: var(--font-display); font-weight: 800; line-height: .9;
  font-size: clamp(6rem, 16vw, 10rem);
  background: linear-gradient(180deg, #fff 0%, var(--silver-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--amber); }
.about-copy p:last-child { font-size: 1.1rem; max-width: 40em; }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr minmax(0, 500px); gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-inner { grid-template-columns: 1fr; gap: 32px; } }
.contact-card {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.contact-area {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink);
}

/* Quote form */
.quote-form { display: grid; gap: 14px; }
.form-fields { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 14px; }
.form-fields:disabled { opacity: .55; }
.form-fields:disabled .btn { cursor: not-allowed; }
.form-fields:disabled .btn:hover { transform: none; background: var(--accent); }
.form-notice {
  margin: 0; padding: 10px 14px; border-radius: 6px; font-weight: 600; font-size: .95rem;
  background: #fff; border: 1px solid var(--line); color: var(--ink); text-align: center;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.field label span { color: var(--accent); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  background: #fff; border: 1px solid #cfd6dd; border-radius: 6px; padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(251, 102, 6, .15);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c62828; }
.field-error { font-size: .82rem; color: #c62828; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote-form .btn { margin-top: 4px; }
.quote-form .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.form-status { margin: 0; font-size: .95rem; min-height: 1.2em; }
.form-status.ok { color: #1b7f3b; font-weight: 600; }
.form-status.err { color: #c62828; }
.quote-form.sent .field, .quote-form.sent .field-row, .quote-form.sent .btn { display: none; }
.quote-form.sent .form-status { font-size: 1.1rem; text-align: center; padding: 28px 8px; }

/* Draft placeholder highlight; deploy.sh refuses to publish while any element still uses this class */
.todo { background: repeating-linear-gradient(45deg, #fff3c4 0 6px, #ffe89a 6px 12px); padding: 0 .25em; border-radius: 3px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #fff; color: var(--muted); padding: 32px 0; font-size: .92rem;
  border-top: 1px solid var(--line);
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.footer-inner p { margin: 0; }
.brand-footer img { height: 40px; }

/* ---------- Entrance animations (classes added by js/main.js) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in { opacity: 1; transform: none; }
/* Our Signs cards slide in from opposite sides (stacked on narrow screens: fade up only) */
@media (min-width: 821px) {
  .product.reveal { transition-duration: .7s, .9s; }
  .product.reveal:nth-child(1) { transform: translateX(-60px); }
  .product.reveal:nth-child(2) { transform: translateX(60px); transition-delay: 200ms; }
  .product.reveal.in { transform: none; }
}
#signs { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
