/* Upstate Garage Storage — premium, mobile-first */
:root {
  --ink: #0c0d0f;
  --charcoal: #14161a;
  --charcoal-2: #1c1f26;
  --stone: #2a2e36;
  --muted: #8a857c;
  --line: #e6e0d6;
  --line-soft: rgba(196, 165, 116, 0.22);
  --bg: #f7f3ec;
  --bg-warm: #f0ebe3;
  --white: #fffcf7;
  --brass: #c4a574;
  --brass-light: #d9c29a;
  --brass-dark: #9a7b4f;
  --success: #3d6b52;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(12, 13, 15, 0.08);
  --shadow-soft: 0 4px 18px rgba(12, 13, 15, 0.05);
  --max: 1120px;
  --font: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  max-width: 100vw;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--charcoal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass-dark); }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.55em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.05rem, 5vw, 3.15rem); font-weight: 600; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.28rem; font-family: var(--serif); }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
.container {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: 1.35rem; /* ~21.6px */
  box-sizing: border-box;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brass); color: var(--ink); padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 252, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(230, 224, 214, 0.9);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 0; min-height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--ink); font-weight: 600;
}
.brand img, .brand svg { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; font-family: var(--serif); font-size: 1.15rem; }
.brand-text {
  min-width: 0;
  max-width: calc(100vw - 7.5rem);
}
.brand-text small {
  font-family: var(--font); font-weight: 500; color: var(--muted);
  font-size: 0.62rem; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 0.15rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: block;
}
@media (max-width: 400px) {
  .brand-text { font-size: 1.05rem; }
  .brand-text small { font-size: 0.58rem; letter-spacing: 0.03em; }
  .brand img, .brand svg { width: 34px; height: 34px; flex-shrink: 0; }
  .brand { gap: 0.5rem; min-width: 0; }
}
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.site-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: 0.75rem 1rem 1rem;
}
.site-nav.open { display: block; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.site-nav a {
  display: block; padding: 0.65rem 0.75rem; text-decoration: none;
  border-radius: var(--radius-sm); color: var(--charcoal); font-weight: 500; font-size: 0.92rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--bg); color: var(--ink); }
.nav-cta {
  background: var(--charcoal) !important; color: var(--white) !important; text-align: center;
  letter-spacing: 0.02em;
}
.nav-cta:hover { background: var(--ink) !important; color: var(--brass-light) !important; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block; position: static; border: 0; padding: 0; background: transparent;
  }
  .site-nav ul { flex-direction: row; align-items: center; gap: 0.1rem; }
  .site-nav a { padding: 0.45rem 0.65rem; font-size: 0.84rem; }
  .nav-cta { margin-left: 0.4rem; padding-inline: 1rem !important; border-radius: 999px !important; }
}

/* Full-bleed photo hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex; align-items: flex-end;
  color: var(--white);
  padding: 0;
  overflow: hidden;
  background: var(--charcoal) center/cover no-repeat;
  background-image:
    linear-gradient(105deg, rgba(12,13,15,0.92) 0%, rgba(12,13,15,0.72) 42%, rgba(12,13,15,0.42) 100%),
    url("/img/hero-elevator-mobile.webp");
  background-position: center top;
}
@media (min-width: 640px) {
  .hero {
    background-image:
      linear-gradient(105deg, rgba(12,13,15,0.9) 0%, rgba(12,13,15,0.55) 48%, rgba(12,13,15,0.28) 100%),
      url("/img/hero-elevator.webp");
    background-position: center center;
  }
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,13,15,0.55) 0%, transparent 42%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; /* keep normal .container side padding */ }
.hero-grid {
  display: grid; gap: 1.35rem;
  padding-block: 3.75rem 3rem;
  /* side padding comes from .container on the same element — do not use padding shorthand */
  max-width: 40rem;
  width: 100%;
  box-sizing: border-box;
}
.hero h1 {
  font-size: clamp(1.7rem, 6.2vw, 3.15rem);
  max-width: 100%;
  overflow-wrap: break-word;
}
.hero h1 { color: var(--white); margin-bottom: 0.85rem; text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.hero p {
  color: rgba(255,252,247,0.88);
  font-size: 1.05rem; max-width: 36rem;
  font-weight: 400;
}
.hero-badge {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.35rem 0.45rem;
  background: rgba(196,165,116,0.14); color: var(--brass-light);
  border: 1px solid rgba(196,165,116,0.4);
  border-radius: 999px; padding: 0.35rem 0.85rem;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1.15rem;
  max-width: 100%;
  box-sizing: border-box;
  line-height: 1.35;
  text-align: center;
}
.hero-art { display: none; } /* photo is background */
.hero-credit {
  position: absolute; right: 1.25rem; bottom: 0.85rem; left: 1.25rem; z-index: 2;
  font-size: 0.62rem; color: rgba(255,255,255,0.45); letter-spacing: 0.02em;
  text-align: right; pointer-events: none;
}
@media (max-width: 480px) {
  .hero-credit { right: 1rem; left: 1rem; font-size: 0.58rem; }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.35rem; max-width: 100%; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.85rem 1.2rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; font-size: 0.9rem; letter-spacing: 0.01em;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  max-width: 100%;
  box-sizing: border-box;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brass); color: var(--ink);
  box-shadow: 0 8px 24px rgba(196,165,116,0.28);
}
.btn-primary:hover { background: var(--brass-light); color: var(--ink); }
.btn-secondary {
  background: rgba(255,255,255,0.06); color: var(--white);
  border-color: rgba(255,255,255,0.28); backdrop-filter: blur(4px);
}
.btn-secondary:hover { border-color: var(--brass); color: var(--brass-light); }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--ink); color: var(--brass-light); }
.btn-outline {
  background: transparent; color: var(--charcoal); border-color: var(--line);
}
.btn-outline:hover { border-color: var(--brass-dark); color: var(--brass-dark); }

/* Service area — clean line, not pills */
.local-pills {
  display: block; margin: 1.35rem 0 0;
  font-size: 0.78rem; color: rgba(255,252,247,0.62);
  letter-spacing: 0.02em; font-weight: 500;
  max-width: 100%;
  line-height: 1.5;
}
.local-pills span {
  background: none; border: 0; padding: 0; border-radius: 0; color: inherit; font-size: inherit;
}
.local-pills span:not(:last-child)::after {
  content: " · ";
  color: rgba(196,165,116,0.7);
}

@media (min-width: 800px) {
  .hero { min-height: 640px; align-items: center; }
  .hero-grid { padding-block: 5.5rem 4.5rem; max-width: 44rem; }
}

/* Sections */
.section { padding: 4.25rem 0; }
.section-alt { background: var(--bg); }
.section-dark {
  background: var(--charcoal);
  color: rgba(255,252,247,0.88);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 38rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow {
  display: inline-block; color: var(--brass-dark); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem;
  margin-bottom: 0.65rem; font-family: var(--font);
}
.section-dark .eyebrow { color: var(--brass); }

.card-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .card-grid.cols-2, .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--line-soft); }
.card h3 { margin-bottom: 0.45rem; }
.card p:last-child { margin-bottom: 0; }
.card .meta { color: var(--muted); font-size: 0.9rem; }
.icon-dot {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(196,165,116,0.16); color: var(--brass-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; margin-bottom: 1rem;
  font-family: var(--serif);
}

.feature-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.feature-list li {
  position: relative; padding-left: 1.55rem; margin-bottom: 0.65rem;
  color: var(--charcoal-2);
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brass);
}

.split {
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .split.reverse > :first-child { order: 2; }
}
.split-photo {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--bg-warm);
}
.split-photo img {
  width: 100%; height: 100%; object-fit: cover;
}

.product-card { padding: 0; overflow: hidden; }
.product-card .art {
  margin: 0; border-radius: 0; overflow: hidden;
  background: var(--bg-warm); border-bottom: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.product-card .art img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-card > :not(.art) { margin-left: 1.35rem; margin-right: 1.35rem; }
.product-card .tag { margin-top: 1.15rem; }
.product-card h2 { font-size: 1.45rem; margin-top: 0.35rem; }
.product-card p { margin-right: 0; }
.product-card p.meta { margin-bottom: 1.35rem; }
.product-card .tag {
  display: inline-block; font-size: 0.68rem; font-weight: 600;
  background: var(--charcoal); color: var(--brass-light);
  padding: 0.28rem 0.65rem; border-radius: 999px;
  letter-spacing: 0.06em; text-transform: uppercase;
}

.steps { counter-reset: step; display: grid; gap: 1.15rem; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.4rem 4.4rem; position: relative;
  box-shadow: var(--shadow-soft);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1.15rem; top: 1.25rem;
  width: 2.15rem; height: 2.15rem; border-radius: 50%;
  background: var(--brass); color: var(--ink); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.05rem;
}
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { padding: 1.65rem; }
  .step::before { position: static; margin-bottom: 1rem; }
}

.faq details {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1rem 1.15rem; margin-bottom: 0.65rem;
  box-shadow: var(--shadow-soft);
}
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--ink); list-style: none;
  font-family: var(--serif); font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brass-dark); font-family: var(--font); font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.95rem; }

.cta-band {
  background: var(--charcoal);
  color: var(--white);
  border-radius: calc(var(--radius) + 2px);
  padding: 2rem 1.75rem;
  display: grid; gap: 1.25rem; align-items: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(196,165,116,0.2);
}
.cta-band h2 { color: var(--white); margin: 0 0 0.4rem; }
.cta-band p { color: rgba(255,252,247,0.72); margin: 0; }
@media (min-width: 700px) {
  .cta-band { grid-template-columns: 1fr auto; padding: 2.35rem 2.5rem; }
}

.form {
  display: grid; gap: 0.95rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-soft);
}
.form label { display: grid; gap: 0.4rem; font-weight: 600; font-size: 0.88rem; color: var(--charcoal); }
.form input, .form select, .form textarea {
  font: inherit; padding: 0.75rem 0.9rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--bg); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--brass); border-color: var(--brass);
  background: var(--white);
}
.form .hint { font-weight: 500; color: var(--muted); font-size: 0.8rem; }
.form-row { display: grid; gap: 0.9rem; }
@media (min-width: 640px) {
  .form-row.two { grid-template-columns: 1fr 1fr; }
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.table-wrap table { min-width: 0; }
@media (max-width: 480px) {
  .table-wrap table { font-size: 0.8rem; }
  .table-wrap th, .table-wrap td { padding: 0.65rem 0.7rem; }
}
table { width: 100%; max-width: 100%; border-collapse: collapse; background: var(--white); font-size: 0.92rem; }
th, td { text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg); color: var(--ink); font-weight: 600; font-family: var(--serif); font-size: 1rem; }
tr:last-child td { border-bottom: 0; }

.note {
  background: rgba(196,165,116,0.12); border: 1px solid rgba(196,165,116,0.35); color: #5c4a2e;
  border-radius: var(--radius-sm); padding: 0.95rem 1.1rem; font-size: 0.92rem;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.75rem; }
.chip {
  background: var(--bg); border: 1px solid var(--line); color: var(--charcoal);
  border-radius: 999px; padding: 0.25rem 0.7rem; font-size: 0.8rem; font-weight: 500;
}

.breadcrumbs { font-size: 0.82rem; color: var(--muted); margin-bottom: 1rem; letter-spacing: 0.02em; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brass-dark); }

.page-hero {
  background: var(--charcoal);
  color: var(--white);
  border-bottom: 1px solid rgba(196,165,116,0.2);
  padding: 2.75rem 0 2.35rem;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.55rem; }
.page-hero p { color: rgba(255,252,247,0.72); max-width: 42rem; margin: 0; }
.page-hero .breadcrumbs, .page-hero .breadcrumbs a { color: rgba(255,252,247,0.5); }
.page-hero .breadcrumbs a:hover { color: var(--brass-light); }

.site-footer {
  background: var(--ink); color: #a8a29a; padding: 3rem 0 1.75rem; margin-top: 0;
}
.site-footer a { color: #e8e2d8; text-decoration: none; }
.site-footer a:hover { color: var(--brass); }
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.45fr 1fr 1fr; }
}
.site-footer h3 {
  color: var(--white); font-size: 1.05rem; margin-bottom: 0.85rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; font-size: 0.92rem; }
.footer-brand {
  font-family: var(--serif); font-weight: 600; color: var(--white);
  font-size: 1.35rem; margin-bottom: 0.65rem;
}
.footer-meta {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.15rem;
  font-size: 0.75rem; color: #6e6960;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; justify-content: space-between;
}
.photo-credit-inline {
  font-size: 0.75rem; color: var(--muted); margin-top: 1.5rem;
}

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