/* Bay State Seating — mobile-first styles
   Palette: navy #0f2a4a, steel #2a5a8c, accent #3d7ab5, warm gray #6b6560, light #f4f2ef, white #fff
*/

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

:root {
  --navy: #0f2a4a;
  --navy-dark: #0a1c33;
  --steel: #2a5a8c;
  --accent: #3d7ab5;
  --warm-gray: #6b6560;
  --warm-gray-light: #8a847c;
  --bg: #f4f2ef;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #4a4642;
  --border: #ddd8d2;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(15, 42, 74, 0.08);
  --shadow-lg: 0 8px 28px rgba(15, 42, 74, 0.14);
  --header-h: 64px;
  --max: 1100px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--steel);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 0.5rem 0;
}

.logo span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle-icon {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-icon::before { top: -7px; }
.nav-toggle-icon::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--navy-dark);
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 0.85rem 1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius);
  min-height: 48px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.site-nav .nav-cta {
  margin-top: 0.5rem;
  background: var(--accent);
  text-align: center;
  font-weight: 600;
}

.site-nav .nav-cta:hover {
  background: #4a8fc4;
}

/* ---------- Layout ---------- */
main {
  min-height: 50vh;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 2.5rem 0;
}

.section--alt {
  background: var(--bg-card);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 40rem;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(145deg, var(--navy-dark) 0%, var(--navy) 45%, var(--steel) 100%);
  color: #fff;
  padding: 3rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(61, 122, 181, 0.35), transparent),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 40px,
      rgba(255, 255, 255, 0.02) 40px,
      rgba(255, 255, 255, 0.02) 41px
    );
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.75rem;
  max-width: 36rem;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: #4a8fc4;
  border-color: #4a8fc4;
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--outline:hover {
  background: var(--navy);
  color: #fff;
}

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

/* ---------- Cards / grids ---------- */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--steel), var(--accent));
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
}

/* ---------- Story / about ---------- */
.prose {
  max-width: 42rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.prose p:last-child {
  margin-bottom: 0;
}

.highlight-box {
  background: linear-gradient(135deg, var(--navy), var(--steel));
  color: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-top: 1.5rem;
}

.highlight-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.highlight-box strong {
  color: #fff;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--warm-gray);
  margin-top: 0.25rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 2.5rem 0;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  margin: 0 0 0.5rem;
}

.cta-band p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.85);
}

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

/* ---------- Services list ---------- */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  min-height: 48px;
}

.service-list li::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brand-list li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.two-col {
  display: grid;
  gap: 2rem;
}

/* ---------- Portfolio ---------- */
.portfolio-note {
  background: #fff8e8;
  border: 1px solid #e8d9a8;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.portfolio-grid {
  display: grid;
  gap: 1.25rem;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.portfolio-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, var(--navy) 0%, var(--steel) 60%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
  position: relative;
}

.portfolio-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.08), transparent 50%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 12px,
      rgba(255, 255, 255, 0.03) 12px,
      rgba(255, 255, 255, 0.03) 13px
    );
}

.portfolio-thumb span {
  position: relative;
  z-index: 1;
}

.portfolio-card:nth-child(2) .portfolio-thumb {
  background: linear-gradient(145deg, #1a3a5c 0%, #3d6b8a 100%);
}

.portfolio-card:nth-child(3) .portfolio-thumb {
  background: linear-gradient(145deg, #243447 0%, #5a6e82 100%);
}

.portfolio-card:nth-child(4) .portfolio-thumb {
  background: linear-gradient(160deg, #0f2a4a 0%, #4a6fa5 100%);
}

.portfolio-card:nth-child(5) .portfolio-thumb {
  background: linear-gradient(145deg, #1e3d32 0%, #3d6b5a 100%);
}

.portfolio-card:nth-child(6) .portfolio-thumb {
  background: linear-gradient(145deg, #3a2f28 0%, #6b5a4e 100%);
}

.portfolio-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.portfolio-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: var(--navy);
}

.portfolio-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steel);
  margin-bottom: 0.5rem;
}

.portfolio-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ---------- Contact form ---------- */
.contact-layout {
  display: grid;
  gap: 2rem;
}

.contact-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-info h2 {
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0 0 1rem;
}

.contact-info dl {
  margin: 0;
}

.contact-info dt {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--warm-gray);
  margin-top: 1rem;
}

.contact-info dt:first-child {
  margin-top: 0;
}

.contact-info dd {
  margin: 0.25rem 0 0;
  color: var(--text);
}

.contact-info a {
  color: var(--steel);
  font-weight: 500;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.form-card h2 {
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0 0 0.35rem;
}

.form-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.form-field .req {
  color: #b33;
  font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.form-status.is-visible {
  display: block;
}

.form-status--info {
  background: #e8f1f8;
  border: 1px solid #b8d4e8;
  color: var(--navy);
}

.page-header {
  background: var(--navy);
  color: #fff;
  padding: 2rem 0;
}

.page-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.35rem;
}

.page-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  max-width: 36rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

.footer-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.footer-brand span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  color: #fff;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  display: inline-block;
  padding: 0.4rem 0;
  min-height: 44px;
  line-height: 1.4;
}

.footer-contact p {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Desktop ---------- */
@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    background: transparent;
    padding: 0;
    border: none;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .site-nav a {
    padding: 0.5rem 0.85rem;
    min-height: auto;
    font-size: 0.95rem;
  }

  .site-nav .nav-cta {
    margin-top: 0;
    margin-left: 0.5rem;
    padding: 0.55rem 1rem;
  }

  .two-col {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }

  .contact-layout {
    grid-template-columns: 1fr 1.4fr;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1.2fr;
  }

  .hero {
    padding: 4rem 0 4.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}

@media (min-width: 960px) {
  .card-grid--3 {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .header-inner {
    padding: 0 1.5rem;
  }

  .container {
    padding: 0 1.5rem;
  }
}

/* ---------- Photos ---------- */
.hero--photo{background:linear-gradient(rgba(10,28,51,.72),rgba(10,28,51,.78)),url(../images/hero.jpg) center/cover no-repeat;min-height:70vh;display:flex;align-items:center}
.hero--photo::after{display:none}
.photo-strip{display:grid;grid-template-columns:1fr;gap:1rem}
.photo-strip img,.gallery img{width:100%;height:auto;display:block;border-radius:var(--radius);aspect-ratio:4/3;object-fit:cover;box-shadow:var(--shadow)}
.gallery{display:grid;grid-template-columns:1fr;gap:1.75rem;margin-top:1.5rem}
.gallery-item{margin:0}
.gallery-item a{display:block;cursor:zoom-in}
.gallery-item a:hover img{box-shadow:var(--shadow-lg)}
.gallery-item figcaption{margin-top:.5rem;color:var(--text-muted);font-size:.95rem}
.tag-list{list-style:none;padding:0;margin:1rem 0 0;display:flex;flex-wrap:wrap;gap:.6rem}
.tag-list li{background:var(--bg-card);border:1px solid var(--border);border-radius:999px;padding:.5rem 1rem;font-weight:600;color:var(--navy)}
.steps{list-style:none;padding:0;margin:1rem 0 0;display:grid;gap:1rem;counter-reset:s}
.steps li{background:var(--bg-card);border-radius:var(--radius);box-shadow:var(--shadow);padding:1.25rem 1.25rem 1.25rem 4rem;position:relative;counter-increment:s}
.steps li::before{content:counter(s);position:absolute;left:1.1rem;top:1.1rem;width:2rem;height:2rem;border-radius:50%;background:var(--steel);color:#fff;display:grid;place-items:center;font-weight:700}
.steps h3{margin:0 0 .3rem}.steps p{margin:0}
@media (min-width:768px){.photo-strip{grid-template-columns:repeat(3,1fr)}.gallery{grid-template-columns:1fr 1fr;gap:2rem}.steps{grid-template-columns:repeat(4,1fr)}}
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.94);display:none;align-items:center;justify-content:center;z-index:1000;touch-action:pan-y}
.lightbox.open{display:flex}
.lightbox img{max-width:94vw;max-height:84vh;object-fit:contain;border-radius:4px}
.lightbox-caption{position:absolute;bottom:1rem;left:0;right:0;text-align:center;color:#fff;font-size:.95rem;padding:0 1rem}
.lightbox button{position:absolute;background:rgba(255,255,255,.12);color:#fff;border:0;font-size:2rem;width:3rem;height:3rem;border-radius:50%;cursor:pointer;line-height:1}
.lightbox button:hover{background:rgba(255,255,255,.25)}
.lb-close{top:1rem;right:1rem}.lb-prev{left:.5rem;top:50%;transform:translateY(-50%)}.lb-next{right:.5rem;top:50%;transform:translateY(-50%)}
body.lb-open{overflow:hidden}
.stats-strip{background:var(--navy);color:#fff;padding:2rem 0}
.stats-strip-lead{font-size:1.2rem;text-align:center;margin:0 0 1.25rem}
.stats-strip-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;text-align:center}
.ss-value{display:block;font-size:2rem;font-weight:800;line-height:1.1}
.ss-label{display:block;font-size:.85rem;opacity:.85;text-transform:uppercase;letter-spacing:.05em}
@media (min-width:768px){.stats-strip-grid{grid-template-columns:repeat(4,1fr)}}
.contact-info a.btn--primary,.contact-info a.btn--primary:visited{background:var(--navy);border-color:var(--navy);color:#fff;font-weight:700}
.contact-info a.btn--primary:hover,.contact-info a.btn--primary:focus-visible{background:var(--steel);border-color:var(--steel);color:#fff}
