:root {
  color-scheme: light;
  --ink: #171719;
  --muted: #55555d;
  --red: #bd1324;
  --red-hover: #970d1b;
  --black: #18181b;
  --paper: #f6f6f7;
  --white: #fff;
  --line: #dedee3;
  --wrap: 1180px;
  font-family: "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.55; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--red); text-underline-offset: .22em; }
a:hover { color: var(--red-hover); }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.04em; }
h1 { font-size: clamp(2.6rem, 6.15vw, 5.8rem); }
h2 { font-size: clamp(1.72rem, 3.6vw, 3.1rem); }
h3 { font-size: 1.2rem; }
p + p { margin-top: .65rem; }
.wrap { width: min(var(--wrap), calc(100% - 2rem)); margin-inline: auto; }
.skip-link { position: fixed; top: 0; left: 1rem; translate: 0 -150%; z-index: 10; background: #fff; padding: .7rem; }
.skip-link:focus { translate: 0; }

.masthead { position: relative; z-index: 3; background: #fff; border-bottom: 1px solid var(--line); }
.masthead-inner, .actions, .nav-list { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1.25rem; }
.masthead-inner { min-height: 75px; justify-content: space-between; padding-block: .55rem; }
.brand { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; }
.brand img { width: clamp(144px, 17vw, 190px); }
.nav-list { list-style: none; margin: 0; padding: 0; gap: 0 1rem; }
.nav-list > li > a, .mega > summary {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 700;
}
.nav-list > li > a:hover, .nav-list [aria-current="page"], .mega[open] > summary, .mega > summary:hover { color: var(--red); }
.mega > summary { list-style: none; }
.mega > summary::-webkit-details-marker { display: none; }
.menu-chevron {
  display: inline-block;
  flex: 0 0 .46rem;
  width: .46rem;
  height: .46rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-.12rem) rotate(45deg);
}
.mega[open] .menu-chevron { transform: translateY(.08rem) rotate(225deg); }
.mega-panel {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
  max-height: min(720px, calc(100vh - 125px));
  max-height: min(720px, calc(100dvh - 125px));
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 16px 36px #18181b24;
  padding: clamp(.85rem, 2vw, 1.5rem);
}
.mega:not([open]) .mega-panel { display: none; }
.mega-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .85rem; }
.mega-top strong { font-size: 1.13rem; }
.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.mega-cell { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: .65rem .85rem; }
.mega-cell-title { display: flex; justify-content: space-between; gap: .6rem; align-items: center; color: var(--ink); min-height: 44px; font-weight: 750; text-decoration: none; }
.mega-cell a:hover { color: var(--red); text-decoration: underline; }
.mega-cell ul { display: grid; list-style: none; margin: .1rem 0 0; padding: 0; }
.mega-cell li a { display: flex; align-items: center; min-height: 38px; color: var(--muted); font-size: .9rem; text-decoration: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .62rem 1.1rem; border: 1px solid transparent; border-radius: 8px; background: var(--red); color: #fff; text-decoration: none; font-weight: 700; }
.button:hover { background: var(--red-hover); color: #fff; }
.button.secondary { background: white; border-color: #c8c8ce; color: var(--ink); }
.button.secondary:hover { border-color: var(--red); color: var(--red); }
.hero { padding-block: clamp(2.25rem, 5.7vw, 5.5rem); background: linear-gradient(115deg, #fff 52%, #ededf0 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); align-items: center; gap: clamp(1.65rem, 5vw, 4.75rem); }
.hero h1 { max-width: 12ch; }
.hero h1 span { color: var(--red); }
.eyebrow { display: flex; align-items: center; gap: .65rem; font-size: .8rem; font-weight: 800; line-height: 1.4; letter-spacing: .075em; text-transform: uppercase; margin-bottom: 1.15rem; }
.eyebrow::before { content: ""; width: 1.6rem; height: 3px; background: var(--red); flex: 0 0 auto; }
.hero-copy { max-width: 48ch; margin-block: 1.25rem 1.55rem; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.16rem); }
.hero-image { overflow: hidden; background: var(--black); border-radius: 16px; position: relative; margin: 0; border-bottom: 5px solid var(--red); }
.hero-image img { width: 100%; aspect-ratio: 1.14; object-fit: cover; }
.hero-image figcaption { padding: .85rem 1rem; color: white; background: var(--black); font-size: .93rem; font-weight: 700; }
.hero-shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .85rem; margin-top: 1.15rem; font-size: .9rem; color: var(--muted); }
.hero-shortcuts a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); text-decoration-color: #9b9ba3; }
.hero-shortcuts a:hover { color: var(--red); }
.section { padding-block: clamp(2.65rem, 5.8vw, 5rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: .8rem 2rem; flex-wrap: wrap; margin-bottom: 1.45rem; }
.section-head p, .lead { max-width: 57ch; color: var(--muted); margin-top: .7rem; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.category-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.category-card:hover { border-color: var(--red); color: var(--ink); }
.category-card img { width: 100%; aspect-ratio: 2.18; object-fit: cover; background: #e7e7e9; }
.category-copy { display: flex; align-items: flex-start; flex-direction: column; gap: .65rem; padding: 1.15rem; flex: 1; }
.category-card p { color: var(--muted); }
.category-card strong { margin-top: auto; font-size: .92rem; color: var(--red); }
.visit-band { background: var(--black); color: #fff; }
.visit-band .lead { color: #dedee4; }
.visit-inner { display: flex; justify-content: space-between; gap: 1rem 2rem; align-items: center; flex-wrap: wrap; }

.page-top { background: #fff; border-bottom: 1px solid var(--line); padding-block: clamp(2.65rem,6vw,4.75rem); }
.page-top h1 { font-size: clamp(2.4rem,5.2vw,4.7rem); }
#catalog { padding-top: clamp(1.5rem, 4vw, 3rem); }
.catalog-tools { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.15rem; margin-bottom: 1.6rem; }
.catalog-tools input, .contact-form :is(input, textarea, select) { display: block; width: 100%; min-height: 48px; padding: .63rem .75rem; background: #fff; border: 1px solid #a3a3ac; border-radius: 8px; color: var(--ink); }
.catalog-tools label, .contact-form label { display: block; margin-bottom: .4rem; font-weight: 700; }
.category-links { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.category-links a { display:flex; align-items:center; min-height: 44px; padding: .4rem .75rem; border: 1px solid var(--line); border-radius: 30px; color: var(--ink); text-decoration: none; font-size: .91rem; }
.category-links a:hover, .category-links a[aria-current="true"] { color: #fff; background: var(--red); border-color: var(--red); }
#catalog-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.catalog-group { margin-bottom: 1.15rem; scroll-margin-top: 1rem; padding: clamp(1rem, 2.6vw, 1.65rem); background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.catalog-group h2 { font-size: clamp(1.35rem, 3vw, 2.15rem); }
.catalog-group-heading { display: flex; gap: 1rem; align-items: center; }
.catalog-group-heading img { border-radius: 8px; width: clamp(74px, 12vw, 128px); aspect-ratio: 1.52; object-fit: cover; }
.catalog-group-heading p { color: var(--muted); font-size: .92rem; margin-top: .35rem; }
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.5rem), 1fr)); gap: .55rem; list-style: none; margin: 1rem 0 0; padding: 0; }

.contact-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 1.5rem; }
.contact-info, .contact-form { background: #fff; border: 1px solid var(--line); padding: clamp(1rem,4vw,2rem); border-radius: 12px; }
.contact-info dl { margin: 1.15rem 0 0; }
.contact-info dt { font-weight: 750; }
.contact-info dd { margin: 0 0 .75rem; overflow-wrap: anywhere; }
.contact-form .field, .contact-form .actions { margin-top: 1rem; }
.contact-form p { color: var(--muted); margin-top: .7rem; }
.site-footer {
  background: var(--black);
  color: #fff;
  border-top: 4px solid var(--red);
  padding-top: clamp(1.75rem, 5vw, 3.75rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.75rem);
}
.footer-brand p, .footer-section address, .footer-bottom small { color: #d0d0d5; }
.footer-brand p { max-width: 27ch; margin-top: .65rem; }
.footer-section h2 { margin: .55rem 0 .65rem; font-size: 1rem; letter-spacing: 0; }
.footer-section address { margin-bottom: .2rem; font-style: normal; }
.footer-section ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #fff; overflow-wrap: anywhere; text-underline-offset: .22em; }
.footer-section a, .footer-bottom a { display: inline-flex; min-height: 44px; align-items: center; }
.footer-section ul a { text-decoration: none; }
.footer-section ul a:hover, .footer-section ul a:focus-visible { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; justify-content: space-between; border-top: 1px solid #535358; padding-block: .5rem; }
.site-footer :focus-visible, .visit-band :focus-visible { outline-color: #fff; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .footer-brand { padding-bottom: 1.2rem; }
  .footer-section { padding-block: .75rem; border-top: 1px solid #414146; }
  .footer-section h2 { margin-top: 0; }
  .footer-section nav ul, .footer-section ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .75rem; }
  .footer-section:last-child ul { grid-template-columns: minmax(0, 1fr); }
}

.company-content { display: grid; gap: 2rem; }
.company-content h2 { font-size: clamp(1.4rem,3vw,2.3rem); margin-bottom: .75rem; }
.company-content section { scroll-margin-top: 1rem; }
.company-index ul { display: flex; flex-wrap: wrap; gap: .75rem 1rem; list-style: none; padding: 0; margin: 0; }
.company-purpose, .site-service-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,17rem),1fr)); gap: 1rem; }
.company-purpose, .site-service-list li { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 1rem; }
.site-service-list { list-style: none; padding: 0; }
.site-service-list a { display: inline-block; margin-top: .6rem; }
.company-content details { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin: .5rem 0; }
.company-content summary { padding: .7rem .9rem; font-weight: 750; }
.company-content details[open] summary { background: #f2f2f4; }
.company-detail-list { padding-left: 2rem; margin: 1rem; }
.company-detail-list li + li { margin-top: .35rem; }
.legacy-service h1 { font-size: clamp(2rem,5vw,4rem); margin-bottom: 1rem; }
.legacy-service h2 { margin-bottom: .5rem; font-size: 1.3rem; }
.legacy-service p { max-width: 65ch; margin-bottom: 1rem; }
.legacy-service > .button { margin-top: 1rem; }
.catalog-note { margin-top: .7rem; color: var(--muted); font-size: .92rem; }
.service-detail {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  scroll-margin-top: 1rem;
}
.service-detail:hover, .service-detail[open] { border-color: var(--red); }
.service-detail summary {
  position: relative;
  display: grid;
  gap: .3rem;
  min-height: 76px;
  padding: .8rem 2.5rem .8rem .9rem;
  border-radius: 8px;
  list-style: none;
}
.service-detail summary::-webkit-details-marker { display: none; }
.service-detail summary::after {
  content: "";
  position: absolute;
  top: .96rem;
  right: 1.05rem;
  width: .5rem;
  height: .5rem;
  color: var(--red);
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.service-detail[open] summary::after { transform: translateY(.22rem) rotate(225deg); }
.service-name { font-weight: 750; }
.service-description { color: var(--muted); font-size: .92rem; }
.service-detail-body {
  display: grid;
  gap: 1rem;
  padding: 1rem .9rem;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  background: white;
}
.service-detail-body h3 { margin-bottom: .38rem; font-size: 1rem; }
.service-detail-body p, .service-detail-body ul { font-size: .92rem; }
.service-detail-body ul { margin: 0; padding-left: 1.15rem; }
.service-detail-body li + li { margin-top: .25rem; }
.service-detail-body .button { justify-self: start; min-height: 44px; font-size: .9rem; }

.service-list { align-items: start; }
.service-list > li { min-width: 0; overflow-wrap: anywhere; }
.service-list > .linked-service { grid-column: 1 / -1; }
.service-detail:not([open]) > .service-detail-body { display: none; }

/* Keep browsers from resizing individual text blocks in landscape. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.catalog-tools, .catalog-group, .contact-info, .contact-form { min-width: 0; }
.catalog-tools input, .contact-form :is(input, select, textarea) { min-width: 0; font-size: 1rem; }
.contact-form textarea { resize: vertical; }

@media (max-width: 780px) {
  .hero-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 15ch; }
  .hero-image img { aspect-ratio: 1.58; }
  .hero-grid { gap: 1.55rem; }
  .mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { gap: 1rem; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 1.5rem); }
  .masthead-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem .75rem; padding: .5rem 0 0; }
  .masthead nav { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid var(--line); }
  .header-cta { grid-column: 2; grid-row: 1; min-height: 44px; padding: .45rem .8rem; font-size: .875rem; }
  .nav-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .nav-list > li > a, .mega > summary { display: flex; width: 100%; justify-content: center; min-height: 48px; font-size: .9rem; }
  .mega-panel {
    width: calc(100% - 1.5rem);
    max-height: min(36rem, calc(100vh - 104px));
    max-height: min(36rem, calc(100dvh - 104px));
    overscroll-behavior: contain;
  }
  .mega-grid { grid-template-columns: minmax(0, 1fr); }
  .mega-cell ul { display: flex; flex-wrap: wrap; gap: 0 .8rem; }
  .mega-cell li a { min-height: 44px; }
  .section { padding-block: 2.25rem; }
  .hero { padding-block: 1.65rem 2rem; }
  .hero h1 { font-size: clamp(2.15rem, 9.7vw, 3.25rem); max-width: none; }
  .hero-copy { margin-block: 1rem 1.25rem; }
  .hero .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .hero .actions .button { padding-inline: .6rem; font-size: .89rem; }
  .hero-shortcuts { gap: 0 .75rem; margin-top: .75rem; }
  .hero-shortcuts strong { flex-basis: 100%; }
  .hero-shortcuts a { min-height: 44px; }
  .category-grid, .service-list { grid-template-columns: minmax(0, 1fr); }
  .page-top { padding-block: 1.65rem; }
  .page-top h1 { font-size: clamp(2rem, 9.5vw, 3.2rem); overflow-wrap: anywhere; }
  .catalog-tools, .catalog-group { padding: .85rem; }
  .category-links { flex-wrap: nowrap; overflow-x: auto; padding: .25rem .25rem .45rem; scrollbar-width: thin; }
  .category-links li { flex: 0 0 auto; }
  .category-links a { white-space: nowrap; }
  .category-links a:focus-visible { outline-offset: 1px; }
  .catalog-group-heading { gap: .7rem; }
  .catalog-group-heading img { flex: 0 0 64px; width: 64px; }
  .catalog-group h2 { font-size: clamp(1.18rem, 5vw, 1.5rem); overflow-wrap: anywhere; }
  .catalog-group-heading p { margin-top: .25rem; }
  .service-detail-body .button { justify-self: stretch; }
  .contact-form .actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .contact-info dd a, .company-index a { display: inline-flex; min-height: 44px; align-items: center; }
}
@media (max-width: 360px) {
  .hero .actions { grid-template-columns: minmax(0, 1fr); }
  .catalog-group-heading { align-items: flex-start; }
}
.mega-panel { overscroll-behavior: contain; }
.mega-top > a { display: inline-flex; min-height: 44px; align-items: center; }
@media (max-width: 560px) {
  .category-links { scroll-padding-inline: .25rem; }
}

.print-workspace { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.print-inputs, .qr-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1rem, 4vw, 1.5rem);
}
.print-inputs h2, .qr-panel h2 { font-size: clamp(1.25rem, 3vw, 1.65rem); }
.print-inputs > p, .qr-panel > p { color: var(--muted); margin-top: .65rem; }
.print-inputs label { display: block; font-weight: 700; margin-block: 1rem .4rem; }
.print-inputs input, .print-inputs select {
  width: 100%;
  min-height: 46px;
  min-width: 0;
  padding: .5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
}
.print-inputs input::file-selector-button { margin-right: .65rem; padding: .47rem .7rem; border: 0; border-radius: 5px; background: #fff; color: var(--ink); cursor: pointer; }
.print-inputs .actions { margin-top: .8rem; }
.print-inputs .actions + p { overflow-wrap: anywhere; }
.qr-panel img { width: 12rem; height: 12rem; margin-block: .85rem; image-rendering: pixelated; }
.qr-panel .button { margin-top: .8rem; }
@media (max-width: 700px) { .print-workspace { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .nav-list { grid-template-columns: .85fr 1.15fr .9fr 1.2fr 1fr; }
  .nav-list > li > a, .mega > summary { font-size: .82rem; gap: .25rem; }
}

.print-order { margin-top: 1rem; border: 1px solid var(--line); border-radius: 10px; padding: 1rem; overflow-wrap: anywhere; }
.print-order p, #staff-message, #order-message { margin-top: .7rem; }
.print-order .quote-amount { width: min(10rem, 100%); }
.button:disabled { cursor: wait; opacity: .65; }
.dashboard-layout { display: grid; gap: 1rem; align-items: start; grid-template-columns: minmax(0,1fr); }
.dashboard-head, .employee-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .55rem 1rem; }
.dashboard-head .actions { margin: 0; }
#staff-identity { color: var(--muted); margin-top: .35rem; overflow-wrap: anywhere; }
.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,9rem),1fr)); gap: .6rem; margin-top: 1rem; }
.dashboard-stats p { border: 1px solid var(--line); padding: .65rem; border-radius: 8px; background: var(--paper); font-size: .9rem; margin: 0; }
.dashboard-stats strong { display: block; font-size: 1.3rem; }
.employee-list { list-style: none; padding: 0; margin: .8rem 0 0; }
.employee-list li { border-top: 1px solid var(--line); padding: .65rem 0; }
@media (min-width: 900px) {
  .dashboard-layout.admin-view { grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); }
}
