:root {
  --bg: #eef2f7;
  --surface: #f9fbff;
  --surface-strong: #11243d;
  --text: #142338;
  --muted: #5f6f85;
  --line: rgba(17, 36, 61, 0.14);
  --accent: #caa646;
  --accent-dark: #9b7a22;
  --accent-soft: #f5e7bb;
  --success: #0e6b57;
  --max: 1180px;
  --shadow: 0 24px 70px rgba(17, 36, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(202, 166, 70, 0.18), transparent 26%),
    linear-gradient(180deg, #e7edf5 0%, #f7f9fc 34%, #ffffff 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.display,
h1,
h2,
h3 {
  font-family: "Bodoni MT", Georgia, serif;
  line-height: 0.98;
  margin: 0;
}

h1 {
  font-size: clamp(2.75rem, 6.2vw, 5rem);
}

h2 {
  font-size: clamp(2.35rem, 4.2vw, 3.7rem);
}

h3 {
  font-size: 1.58rem;
}

p {
  font-size: 1.04rem;
  line-height: 1.72;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(249, 251, 255, 0.88);
  border-bottom: 1px solid rgba(17, 36, 61, 0.08);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 700;
}

.brand-logo {
  display: block;
  height: 150px;
  width: auto;
  object-fit: contain;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, var(--surface-strong) 0%, #1c3960 100%);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: "Bodoni MT", Georgia, serif;
  font-size: 1.25rem;
  box-shadow: 0 12px 26px rgba(17, 36, 61, 0.22);
}

.brand-copy strong,
.brand-copy span {
  display: block;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  padding: 0.7rem 0.9rem;
}

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

.site-nav a,
.nav-group-label,
.nav-caret {
  font-size: 1.03rem;
  color: #2a2d32;
}

.site-nav a:hover,
.nav-group-label:hover,
.nav-caret:hover {
  color: var(--accent);
}

.nav-group {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding-bottom: 0.9rem;
  margin-bottom: -0.9rem;
}

.nav-group-label {
  display: inline-flex;
  align-items: center;
}

.nav-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-caret:focus-visible {
  outline: 2px solid rgba(202, 166, 70, 0.45);
  outline-offset: 2px;
}

.nav-caret::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.nav-group.open .nav-caret::before {
  transform: rotate(-135deg) translateX(-1px);
}

.dropdown {
  position: absolute;
  top: calc(100% - 0.1rem);
  left: 0;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 0.8rem;
  display: grid;
  gap: 0.35rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-group:hover .dropdown,
.nav-group:focus-within .dropdown,
.nav-group.open .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown a {
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
}

.dropdown a:hover {
  background: rgba(202, 166, 70, 0.14);
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.9rem 1.2rem;
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button {
  color: #0f2035;
  background: linear-gradient(135deg, var(--accent) 0%, #e0c164 100%);
  box-shadow: 0 16px 30px rgba(202, 166, 70, 0.32);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
}

.button:hover,
.button-secondary:hover,
.card:hover,
.blog-card:hover {
  transform: translateY(-2px);
}

.hero {
  padding: 3rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 1.4rem;
  align-items: stretch;
}

.hero-copy,
.hero-media,
.card,
.highlight-panel,
.contact-panel,
.timeline,
.faq-item,
.blog-card,
.cta-band,
.stat-tile,
.page-hero-panel {
  background: rgba(249, 251, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 640px;
}

.hero-actions,
.split-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat-tile {
  padding: 1rem;
}

.stat-tile strong {
  display: block;
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}

.hero-media {
  overflow: hidden;
  position: relative;
  min-height: 640px;
}

.home-hero-media {
  background: linear-gradient(135deg, #10213a 0%, #1b3558 100%);
}

.hero-media img,
.page-hero-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-media img {
  object-fit: cover;
  object-position: center;
  padding: 0;
}

.home-expectations-panel {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.home-expectations-panel > :first-child {
  margin-top: 0;
}

.home-expectations-panel .eyebrow {
  margin-bottom: 0.2rem;
}

.home-expectations-panel h2 {
  margin-top: 0;
  margin-bottom: 0.15rem;
}

.home-expectations-panel .stats-grid {
  grid-template-columns: 1fr;
  margin-top: 0.45rem;
  gap: 0.75rem;
}

.home-expectations-panel .stat-tile {
  padding: 0.85rem 0.95rem;
  min-width: 0;
}

.home-expectations-panel .stat-tile strong {
  font-size: 1.08rem;
  line-height: 1.2;
  margin-bottom: 0.18rem;
  overflow-wrap: anywhere;
}

.home-expectations-panel .stat-tile span {
  display: block;
  font-size: 0.96rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.home-expectations-head {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.home-expectations-head .eyebrow {
  margin-bottom: 0.25rem;
}

.home-expectations-head h2 {
  margin-top: 0;
}

.home-expectations-strip {
  padding: 2.4rem 0;
}

.home-lead {
  display: grid;
  gap: 1.35rem;
}

.home-lead-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.home-lead-copy p {
  max-width: 60ch;
  margin: 0.9rem auto 0;
}

.home-lead-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-lead-points .mini-panel {
  height: 100%;
}

.home-proof-shell {
  display: grid;
  gap: 1.4rem;
}

.home-proof-copy {
  max-width: 720px;
}

.home-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-proof-band .mini-panel {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.home-proof-band .mini-panel strong,
.home-proof-band .mini-panel span {
  color: white;
}

.home-story-panel {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  gap: 0.95rem;
}

.home-story-panel > :first-child {
  margin-top: 0;
}

.about-image-fit img {
  object-fit: contain;
  background: #f9fbff;
  padding: 1rem;
}

.blog-image-fit img {
  object-fit: contain;
  background: #f9fbff;
  padding: 1rem;
}

.blog-article-image-fit img {
  object-fit: contain;
  background: #f9fbff;
  padding: 1rem;
}

.suppression-image-fit img {
  object-fit: contain;
  background: #f9fbff;
  padding: 1rem;
}

.extinguishing-image-fit img {
  object-fit: contain;
  background: #f9fbff;
  padding: 1rem;
}

.other-services-image-fit img {
  object-fit: cover;
  padding: 0;
}

.assessment-cta-panel {
  text-align: left;
}

.assessment-cta-panel .button {
  margin-left: 0;
  margin-right: 0;
}

.hero-overlay,
.page-hero-overlay {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  background: rgba(17, 36, 61, 0.82);
  color: white;
  padding: 1.4rem;
}

.section {
  padding: 1.2rem 0 4rem;
}

.section-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.6rem;
}

.about-section-top {
  justify-content: center;
  text-align: center;
}

.about-page h1,
.about-page h2,
.about-page h3 {
  text-align: center;
}

.blog-article-page .section {
  padding: 0.9rem 0 3rem;
}

.blog-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 320px);
  justify-content: center;
  gap: 2rem;
  align-items: start;
}

.blog-prose {
  background: rgba(249, 251, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 2.2vw, 2rem);
}

.blog-prose > :first-child {
  margin-top: 0;
}

.blog-prose h2 {
  margin-top: 2rem;
  text-align: left;
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  line-height: 1.08;
}

.blog-prose h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  line-height: 1.2;
}

.blog-prose p {
  margin-bottom: 1rem;
}

.blog-prose .tick-list {
  margin-top: 1rem;
}

.blog-cta-card {
  position: sticky;
  top: 6.5rem;
  width: 100%;
  box-sizing: border-box;
  background: rgba(249, 251, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.45rem;
  display: grid;
  gap: 0.9rem;
  align-content: start;
  justify-self: stretch;
  overflow: hidden;
}

.blog-meta {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-cta-card > :first-child {
  margin-top: 0;
}

.blog-cta-card .eyebrow,
.blog-cta-card h2,
.blog-cta-card p {
  margin: 0;
}

.blog-cta-card h2 {
  text-align: left;
  line-height: 1.15;
}

.blog-cta-card p {
  line-height: 1.65;
}

.blog-cta-card .button {
  margin-top: 0.35rem;
  justify-self: center;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
}

.scheduling-cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.scheduling-cta-card .eyebrow,
.scheduling-cta-card h2 {
  text-align: center;
}

.scheduling-cta-card .button {
  justify-self: auto;
  margin-left: 0;
  margin-right: 0;
}

.centered-blog-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.centered-blog-cta .eyebrow,
.centered-blog-cta h2,
.centered-blog-cta p {
  text-align: center;
}

.centered-blog-cta .button {
  justify-self: auto;
  margin-left: 0;
  margin-right: 0;
}

.about-team-grid {
  grid-template-columns: repeat(2, minmax(0, 320px));
  justify-content: center;
}

.service-grid,
.blog-grid,
.stats-grid,
.value-grid,
.contact-grid,
.article-grid,
.footer-grid {
  display: grid;
  gap: 1.2rem;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-grid,
.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-grid.about-team-grid {
  grid-template-columns: repeat(2, minmax(0, 320px));
  justify-content: center;
}

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

.card,
.blog-card,
.highlight-panel,
.contact-panel,
.timeline,
.faq-item {
  padding: 1.45rem;
}

.card p,
.blog-card p,
.contact-panel p {
  margin-bottom: 0;
}

.blog-card-link {
  display: grid;
  color: inherit;
  text-decoration: none;
}

.blog-card-link h3,
.blog-card-link p,
.blog-card-link .eyebrow {
  color: inherit;
}

.blog-card-date {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.blog-card-link .inline-link {
  margin-top: 0.8rem;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

.inline-link {
  color: var(--accent-dark);
  font-weight: 700;
}

.split-layout,
.service-layout,
.contact-grid,
.article-grid {
  grid-template-columns: 1fr 1fr;
}

.split-layout,
.service-layout,
.contact-grid {
  display: grid;
  gap: 1.2rem;
}

.feature-list,
.tick-list,
.info-list,
.footer-links,
.article-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 1.2rem 0 0;
  list-style: none;
}

.tick-list li,
.info-list li,
.article-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
}

.tick-list li::before,
.info-list li::before,
.article-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.page-hero {
  padding: 2.4rem 0 1.4rem;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.2rem;
}

.blog-hero-shell {
  padding-top: 0.8rem;
}

.blog-hero-wrap {
  width: min(calc(100% - 2rem), 1240px);
}

.blog-hero-intro {
  display: grid;
  gap: 0.9rem;
  max-width: 760px;
  margin: 0 auto 1.4rem;
  text-align: center;
}

.blog-hero-grid {
  width: 100%;
  max-width: none;
  display: block;
}

.blog-hero-grid .page-hero-panel {
  min-height: clamp(380px, 60vw, 640px);
}

.page-hero-copy {
  padding: 1.9rem;
  background: rgba(249, 251, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-hero-copy.navy {
  background: linear-gradient(135deg, #10213a 0%, #1b3558 100%);
  color: white;
}

.page-hero-copy.navy p,
.page-hero-copy.navy .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.contact-hero-copy {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.shop-hero-copy {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.terms-hero-copy {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.terms-page .page-hero-copy p {
  max-width: 62ch;
  margin: 0.9rem auto 0;
}

.legal-prose {
  max-width: 980px;
}

.legal-prose h2 {
  margin-top: 2.2rem;
}

.legal-prose p strong:first-child {
  color: var(--accent-dark);
}

.services-hero-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.services-page .page-hero-copy h1 {
  margin-bottom: 0.8rem;
}

.services-page .page-hero-copy p {
  max-width: 58ch;
  margin: 0 auto;
}

.contact-page .page-hero {
  padding: 2.6rem 0 1rem;
}

.contact-page .page-hero-copy h1 {
  margin-bottom: 0.8rem;
}

.contact-page .page-hero-copy p {
  max-width: 60ch;
  margin: 0 auto;
}

.page-hero-copy.gold {
  background: linear-gradient(135deg, #f2df9f 0%, #fff6d8 100%);
}

.page-hero-stack {
  display: grid;
  gap: 1.2rem;
}

.page-hero-split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.2rem;
}

.page-hero-badge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.mini-panel {
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(249, 251, 255, 0.88);
  box-shadow: var(--shadow);
}

.mini-panel strong,
.mini-panel span {
  display: block;
}

.mini-panel strong {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.hero-note {
  padding: 1.2rem;
  border-left: 4px solid var(--accent);
  background: rgba(249, 251, 255, 0.88);
  box-shadow: var(--shadow);
}

.page-hero-panel {
  min-height: 420px;
  overflow: hidden;
  position: relative;
}

.band {
  background: linear-gradient(135deg, #10213a 0%, #1b3558 100%);
  color: white;
  padding: 3.2rem 0;
}

.band p,
.band .eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

.contact-panel strong {
  display: block;
  margin-bottom: 0.35rem;
}

.contact-page .section {
  padding-top: 1.4rem;
}

.contact-page .contact-grid {
  align-items: start;
}

.contact-page .contact-panel {
  height: 100%;
  display: grid;
  align-content: start;
  gap: 1.15rem;
}

.contact-page .contact-panel h2 {
  margin-bottom: 0;
}

.contact-page .contact-panel .info-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding-left: 1.1rem;
}

.contact-page .contact-panel .contact-actions {
  margin-top: 0.25rem;
}

.contact-page form .button {
  justify-self: start;
}

.detection-page .section {
  padding: 1.2rem 0 2.2rem;
}

.detection-page .section + .section {
  padding-top: 0.35rem;
}

.suppression-page .section {
  padding: 0.9rem 0 2.2rem;
}

.suppression-page .page-hero {
  padding: 2.1rem 0 1rem;
}

.suppression-page .section + .section {
  padding-top: 0.35rem;
}

.suppression-page .highlight-panel {
  display: grid;
  align-content: start;
  gap: 0.9rem;
}

.suppression-page .highlight-panel > :first-child {
  margin-top: 0;
}

.suppression-page .highlight-panel p {
  margin-bottom: 0;
}

.suppression-page .highlight-panel .tick-list {
  margin-top: 0.2rem;
}

.suppression-page .highlight-panel .button {
  margin-top: 0.3rem;
  justify-self: start;
}

.extinguishing-page .section {
  padding: 1rem 0 2.4rem;
}

.extinguishing-page .section + .section {
  padding-top: 0.35rem;
}

.sprinklers-page .section {
  padding: 1rem 0 2.4rem;
}

.sprinklers-page .section + .section {
  padding-top: 0.35rem;
}

.other-services-page .section {
  padding: 1rem 0 2.4rem;
}

.other-services-page .section + .section {
  padding-top: 0.35rem;
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.full {
  grid-column: 1 / -1;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  padding: 0.95rem 1rem;
  color: var(--text);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note,
.small {
  font-size: 0.92rem;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-bottom: 0;
}

.cta-band {
  padding: 1.8rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: center;
}

.site-footer {
  padding: 0;
}

.footer-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #10213a;
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  box-shadow: var(--shadow);
  padding: 2rem clamp(1rem, 3vw, 2.5rem);
}

.footer-grid {
  grid-template-columns: 1.1fr 0.7fr 0.8fr;
}

.footer-shell p,
.footer-shell a,
.footer-shell span {
  color: rgba(255, 255, 255, 0.74);
}

.footer-links a {
  padding: 0.2rem 0;
}

.footer-bottom {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.45rem 0.65rem;
  color: rgba(255, 255, 255, 0.78);
}

.map-frame {
  min-height: 360px;
  border: 0;
  width: 100%;
}

@media (max-width: 1024px) {
  .hero-grid,
  .page-hero-grid,
  .page-hero-split,
  .split-layout,
  .service-layout,
  .contact-grid,
  .article-grid,
  .blog-article-layout,
  .cta-band,
  .footer-grid,
  .stats-grid,
  .service-grid,
  .blog-grid,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .home-lead-points,
  .home-proof-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-media {
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.6rem);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-group {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .nav-group-label {
    flex: 1 1 auto;
  }

  .nav-caret {
    margin-left: auto;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0.6rem 0 0;
    min-width: 0;
    width: 100%;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .nav-group:hover .dropdown,
  .nav-group:focus-within .dropdown {
    display: none;
  }

  .nav-group.open .dropdown {
    display: grid;
  }

  .hero-metrics,
  .form-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(2rem, 6vw, 2.7rem);
  }

  .brand-logo {
    height: 96px;
  }
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 0.78rem;
}

.shop-toolbar {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.shop-card {
  background: rgba(249, 251, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-rows: 300px 1fr;
}

.shop-card-media {
  background: linear-gradient(180deg, #efe5da 0%, #fffaf5 100%);
  height: 300px;
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 0.9rem;
  overflow: hidden;
}

.shop-card-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.shop-card-body {
  padding: 1.2rem;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.8rem;
  align-content: start;
  min-width: 0;
  height: 100%;
}

.shop-card-body h3,
.shop-card-body p {
  overflow-wrap: anywhere;
}

.shop-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.shop-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #1f2023;
  color: white;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.table-wrap {
  overflow-x: auto;
  background: rgba(249, 251, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 1rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.table tfoot td {
  font-weight: 700;
}

.cart-qty-input {
  width: 72px;
}

.cart-summary-toggle {
  margin-top: 1rem;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #e0c164 100%);
  color: #10213a;
  box-shadow: 0 16px 30px rgba(17, 36, 61, 0.24);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 40;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: rotate(45deg) translate(2px, 2px);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  filter: brightness(1.04);
}

@media (max-width: 1024px) {
  .shop-grid,
  .shop-toolbar {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 2.75rem;
    height: 2.75rem;
  }
}
